mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Merge branch gil/5230_SP2-Adding_Rooms_to_Spaces into gil/5231_SP3-1_Update_room_settings_for_Spaces
This commit is contained in:
@@ -16,6 +16,24 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
@objcMembers
|
||||
class ThreadParameters: NSObject {
|
||||
|
||||
/// If not nil, the thread will be opened on this room
|
||||
let threadId: String
|
||||
|
||||
/// If true, related room screen will be stacked in the navigation stack
|
||||
let stackRoomScreen: Bool
|
||||
|
||||
init(threadId: String,
|
||||
stackRoomScreen: Bool) {
|
||||
self.threadId = threadId
|
||||
self.stackRoomScreen = stackRoomScreen
|
||||
super.init()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Navigation parameters to display a room with a provided identifier in a specific matrix session.
|
||||
@objcMembers
|
||||
class RoomNavigationParameters: NSObject {
|
||||
@@ -31,6 +49,9 @@ class RoomNavigationParameters: NSObject {
|
||||
/// The Matrix session in which the room should be available.
|
||||
let mxSession: MXSession
|
||||
|
||||
/// Navigation parameters for a thread
|
||||
let threadParameters: ThreadParameters?
|
||||
|
||||
/// Screen presentation parameters.
|
||||
let presentationParameters: ScreenPresentationParameters
|
||||
|
||||
@@ -42,10 +63,12 @@ class RoomNavigationParameters: NSObject {
|
||||
init(roomId: String,
|
||||
eventId: String?,
|
||||
mxSession: MXSession,
|
||||
threadParameters: ThreadParameters?,
|
||||
presentationParameters: ScreenPresentationParameters) {
|
||||
self.roomId = roomId
|
||||
self.eventId = eventId
|
||||
self.mxSession = mxSession
|
||||
self.threadParameters = threadParameters
|
||||
self.presentationParameters = presentationParameters
|
||||
self.showSettingsInitially = false
|
||||
|
||||
@@ -62,6 +85,7 @@ class RoomNavigationParameters: NSObject {
|
||||
self.mxSession = mxSession
|
||||
self.presentationParameters = presentationParameters
|
||||
self.showSettingsInitially = showSettingsInitially
|
||||
self.threadParameters = nil
|
||||
|
||||
super.init()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user