mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-29 20:56:57 +02:00
Ensure DisabledRoomInputToolbarView is used. Fix previewing rooms. Fix favourited DMs in Home.
This commit is contained in:
@@ -92,7 +92,9 @@ final class RoomCoordinator: NSObject, RoomCoordinatorProtocol {
|
||||
// Detect when view controller has been dismissed by gesture when presented modally (not in full screen).
|
||||
self.roomViewController.presentationController?.delegate = self
|
||||
|
||||
if let eventId = self.selectedEventId {
|
||||
if let previewData = self.parameters.previewData {
|
||||
self.loadRoomPreview(withData: previewData, completion: completion)
|
||||
} else if let eventId = self.selectedEventId {
|
||||
self.loadRoom(withId: self.parameters.roomId, and: eventId, completion: completion)
|
||||
} else {
|
||||
self.loadRoom(withId: self.parameters.roomId, completion: completion)
|
||||
@@ -178,6 +180,13 @@ final class RoomCoordinator: NSObject, RoomCoordinatorProtocol {
|
||||
completion?()
|
||||
}
|
||||
}
|
||||
|
||||
private func loadRoomPreview(withData previewData: RoomPreviewData, completion: (() -> Void)?) {
|
||||
|
||||
self.roomViewController.displayRoomPreview(previewData)
|
||||
|
||||
completion?()
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - RoomIdentifiable
|
||||
|
||||
Reference in New Issue
Block a user