Add threadId parameter to room navigation parameters

This commit is contained in:
ismailgulek
2021-11-25 16:28:42 +03:00
parent e862f77440
commit 4e2bafbf84
8 changed files with 27 additions and 3 deletions
@@ -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)