mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
Get information text as a parameter in threads beta view
This commit is contained in:
@@ -26,8 +26,9 @@ final class ThreadsBetaCoordinator: NSObject, ThreadsBetaCoordinatorProtocol {
|
||||
// MARK: Private
|
||||
|
||||
private let threadId: String
|
||||
private let infoText: String
|
||||
private lazy var viewController: ThreadsBetaViewController = {
|
||||
let result = ThreadsBetaViewController.instantiate()
|
||||
let result = ThreadsBetaViewController.instantiate(infoText: infoText)
|
||||
result.didTapEnableButton = { [weak self] in
|
||||
guard let self = self else { return }
|
||||
RiotSettings.shared.enableThreads = true
|
||||
@@ -50,8 +51,9 @@ final class ThreadsBetaCoordinator: NSObject, ThreadsBetaCoordinatorProtocol {
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
init(threadId: String) {
|
||||
init(threadId: String, infoText: String) {
|
||||
self.threadId = threadId
|
||||
self.infoText = infoText
|
||||
}
|
||||
|
||||
// MARK: - Public
|
||||
|
||||
Reference in New Issue
Block a user