SP3.1: Update room settings for Spaces element-ios#5231

- Changed the Room Settings screen according to the new design
- Implemented the room access flow
- Added room upgrade support
- Implemented the room suggestion screen
This commit is contained in:
Gil Eluard
2022-01-13 15:53:45 +01:00
parent 069e79e24e
commit 086afb1835
78 changed files with 3755 additions and 196 deletions
@@ -34,6 +34,9 @@ class RoomNavigationParameters: NSObject {
/// Screen presentation parameters.
let presentationParameters: ScreenPresentationParameters
/// If `true`, the room settings screen will be initially displayed. Default `false`
let showSettingsInitially: Bool
// MARK: - Setup
init(roomId: String,
@@ -44,6 +47,21 @@ class RoomNavigationParameters: NSObject {
self.eventId = eventId
self.mxSession = mxSession
self.presentationParameters = presentationParameters
self.showSettingsInitially = false
super.init()
}
init(roomId: String,
eventId: String?,
mxSession: MXSession,
presentationParameters: ScreenPresentationParameters,
showSettingsInitially: Bool) {
self.roomId = roomId
self.eventId = eventId
self.mxSession = mxSession
self.presentationParameters = presentationParameters
self.showSettingsInitially = showSettingsInitially
super.init()
}