mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
use isDm from the SDK to determine if a room is a direct one to one room.
This commit is contained in:
@@ -15294,6 +15294,11 @@ class RoomInfoProxyMock: RoomInfoProxyProtocol, @unchecked Sendable {
|
||||
set(value) { underlyingIsFavourite = value }
|
||||
}
|
||||
var underlyingIsFavourite: Bool!
|
||||
var isDM: Bool {
|
||||
get { return underlyingIsDM }
|
||||
set(value) { underlyingIsDM = value }
|
||||
}
|
||||
var underlyingIsDM: Bool!
|
||||
var canonicalAlias: String?
|
||||
var alternativeAliases: [String] = []
|
||||
var membership: Membership {
|
||||
|
||||
@@ -182,6 +182,7 @@ extension RoomInfoProxyMock {
|
||||
activeMembersCount = configuration.members.filter { $0.membership == .join || $0.membership == .invite }.count
|
||||
invitedMembersCount = configuration.members.filter { $0.membership == .invite }.count
|
||||
joinedMembersCount = configuration.members.filter { $0.membership == .join }.count
|
||||
isDM = configuration.isDirect && activeMembersCount <= 2
|
||||
highlightCount = 0
|
||||
notificationCount = 0
|
||||
cachedUserDefinedNotificationMode = .allMessages
|
||||
|
||||
Reference in New Issue
Block a user