mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Observe room info updates and automatically dismiss the room if meanwhile left or banned (#4122)
* Fix #3302 - Observe room info updates and automatically dismiss the room if meanwhile left or banned.
This commit is contained in:
@@ -43,7 +43,10 @@ struct JoinedRoomProxyMockConfiguration {
|
||||
var canUserPin = true
|
||||
|
||||
var shouldUseAutoUpdatingTimeline = false
|
||||
|
||||
var joinRule: JoinRule?
|
||||
var membership: Membership = .joined
|
||||
|
||||
var isVisibleInPublicDirectory = false
|
||||
}
|
||||
|
||||
@@ -151,7 +154,7 @@ extension RoomInfo {
|
||||
isFavourite: false,
|
||||
canonicalAlias: configuration.canonicalAlias,
|
||||
alternativeAliases: configuration.alternativeAliases,
|
||||
membership: .joined,
|
||||
membership: configuration.membership,
|
||||
inviter: configuration.inviter.map { RoomMember(userId: $0.userID,
|
||||
displayName: $0.displayName,
|
||||
avatarUrl: $0.avatarURL?.absoluteString,
|
||||
|
||||
Reference in New Issue
Block a user