mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Revert "use isDm from the SDK to determine if a room is a direct one to one room."
This reverts commit 58d0841bedb9cc40bd5880a76f3cc1f56c3b8bdb.
This commit is contained in:
@@ -54,10 +54,6 @@ struct RoomInfoProxy: RoomInfoProxyProtocol {
|
||||
roomInfo.isSpace
|
||||
}
|
||||
|
||||
var isDM: Bool {
|
||||
roomInfo.isDm
|
||||
}
|
||||
|
||||
var successor: SuccessorRoom? {
|
||||
roomInfo.successorRoom
|
||||
}
|
||||
|
||||
@@ -38,7 +38,6 @@ protocol RoomInfoProxyProtocol: BaseRoomInfoProxyProtocol {
|
||||
var isDirect: Bool { get }
|
||||
var isSpace: Bool { get }
|
||||
var isFavourite: Bool { get }
|
||||
var isDM: Bool { get }
|
||||
|
||||
var canonicalAlias: String? { get }
|
||||
var alternativeAliases: [String] { get }
|
||||
|
||||
@@ -224,7 +224,7 @@ extension JoinedRoomProxyProtocol {
|
||||
}
|
||||
|
||||
var isDirectOneToOneRoom: Bool {
|
||||
infoPublisher.value.isDM
|
||||
infoPublisher.value.isDirect && infoPublisher.value.activeMembersCount <= 2
|
||||
}
|
||||
|
||||
func members() async -> [RoomMemberProxyProtocol]? {
|
||||
|
||||
Reference in New Issue
Block a user