mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
Get information text as a parameter in threads beta view
This commit is contained in:
@@ -38,6 +38,7 @@ final class ThreadsBetaCoordinatorBridgePresenter: NSObject {
|
||||
// MARK: Private
|
||||
|
||||
public let threadId: String
|
||||
public let infoText: String
|
||||
private let slidingModalPresenter = SlidingModalPresenter()
|
||||
private var coordinator: ThreadsBetaCoordinator?
|
||||
|
||||
@@ -47,8 +48,9 @@ final class ThreadsBetaCoordinatorBridgePresenter: NSObject {
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
init(threadId: String) {
|
||||
init(threadId: String, infoText: String) {
|
||||
self.threadId = threadId
|
||||
self.infoText = infoText
|
||||
super.init()
|
||||
}
|
||||
|
||||
@@ -56,7 +58,7 @@ final class ThreadsBetaCoordinatorBridgePresenter: NSObject {
|
||||
|
||||
func present(from viewController: UIViewController, animated: Bool) {
|
||||
|
||||
let threadsBetaCoordinator = ThreadsBetaCoordinator(threadId: threadId)
|
||||
let threadsBetaCoordinator = ThreadsBetaCoordinator(threadId: threadId, infoText: infoText)
|
||||
threadsBetaCoordinator.delegate = self
|
||||
guard let presentable = threadsBetaCoordinator.toPresentable() as? SlidingModalPresentable.ViewControllerType else {
|
||||
MXLog.error("[ThreadsBetaCoordinatorBridgePresenter] Presentable is not 'SlidingModalPresentable'")
|
||||
|
||||
Reference in New Issue
Block a user