mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Add threadId parameter to room navigation parameters
This commit is contained in:
@@ -25,6 +25,9 @@ class RoomNavigationParameters: NSObject {
|
||||
/// The room identifier
|
||||
let roomId: String
|
||||
|
||||
/// If not nil, the thread will be opened on this room
|
||||
let threadId: String?
|
||||
|
||||
/// If not nil, the room will be opened on this event.
|
||||
let eventId: String?
|
||||
|
||||
@@ -37,10 +40,12 @@ class RoomNavigationParameters: NSObject {
|
||||
// MARK: - Setup
|
||||
|
||||
init(roomId: String,
|
||||
threadId: String?,
|
||||
eventId: String?,
|
||||
mxSession: MXSession,
|
||||
presentationParameters: ScreenPresentationParameters) {
|
||||
self.roomId = roomId
|
||||
self.threadId = threadId
|
||||
self.eventId = eventId
|
||||
self.mxSession = mxSession
|
||||
self.presentationParameters = presentationParameters
|
||||
|
||||
@@ -32,6 +32,7 @@ class RoomPreviewNavigationParameters: RoomNavigationParameters {
|
||||
self.previewData = previewData
|
||||
|
||||
super.init(roomId: previewData.roomId,
|
||||
threadId: nil,
|
||||
eventId: previewData.eventId,
|
||||
mxSession: previewData.mxSession,
|
||||
presentationParameters: presentationParameters)
|
||||
|
||||
Reference in New Issue
Block a user