mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Start DM on first message (#6367)
Start DM on first message Co-authored-by: Philippe Loriaux <philippel@element.io>
This commit is contained in:
@@ -40,8 +40,11 @@ class RoomNavigationParameters: NSObject {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
/// The room identifier
|
||||
let roomId: String
|
||||
/// The room identifier. `nil` on new DM
|
||||
let roomId: String?
|
||||
|
||||
/// The user identifier to create a new DM
|
||||
let userId: String?
|
||||
|
||||
/// If not nil, the room will be opened on this event.
|
||||
let eventId: String?
|
||||
@@ -74,6 +77,7 @@ class RoomNavigationParameters: NSObject {
|
||||
autoJoinInvitedRoom: Bool
|
||||
) {
|
||||
self.roomId = roomId
|
||||
self.userId = nil
|
||||
self.eventId = eventId
|
||||
self.mxSession = mxSession
|
||||
self.threadParameters = threadParameters
|
||||
@@ -92,6 +96,7 @@ class RoomNavigationParameters: NSObject {
|
||||
presentationParameters: ScreenPresentationParameters
|
||||
) {
|
||||
self.roomId = roomId
|
||||
self.userId = nil
|
||||
self.eventId = eventId
|
||||
self.mxSession = mxSession
|
||||
self.threadParameters = threadParameters
|
||||
@@ -110,6 +115,7 @@ class RoomNavigationParameters: NSObject {
|
||||
threadParameters: ThreadParameters?,
|
||||
presentationParameters: ScreenPresentationParameters) {
|
||||
self.roomId = roomId
|
||||
self.userId = nil
|
||||
self.eventId = eventId
|
||||
self.mxSession = mxSession
|
||||
self.threadParameters = threadParameters
|
||||
@@ -127,6 +133,7 @@ class RoomNavigationParameters: NSObject {
|
||||
presentationParameters: ScreenPresentationParameters,
|
||||
showSettingsInitially: Bool) {
|
||||
self.roomId = roomId
|
||||
self.userId = nil
|
||||
self.eventId = eventId
|
||||
self.mxSession = mxSession
|
||||
self.presentationParameters = presentationParameters
|
||||
@@ -137,4 +144,20 @@ class RoomNavigationParameters: NSObject {
|
||||
|
||||
super.init()
|
||||
}
|
||||
|
||||
init(userId: String,
|
||||
mxSession: MXSession,
|
||||
presentationParameters: ScreenPresentationParameters) {
|
||||
self.roomId = nil
|
||||
self.userId = userId
|
||||
self.eventId = nil
|
||||
self.mxSession = mxSession
|
||||
self.threadParameters = nil
|
||||
self.presentationParameters = presentationParameters
|
||||
self.showSettingsInitially = false
|
||||
self.senderId = nil
|
||||
self.autoJoinInvitedRoom = false
|
||||
|
||||
super.init()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user