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 spaceRoom, a joinedRoom or a notificationItem are from a dm room.
This commit is contained in:
@@ -151,7 +151,8 @@ private extension SpaceRoom {
|
||||
childrenCount: UInt64 = 0,
|
||||
membership: Membership? = .joined,
|
||||
heroes: [RoomHero]? = [],
|
||||
via: [String] = []) {
|
||||
via: [String] = [],
|
||||
isDM: Bool? = false) {
|
||||
self.init(roomId: id,
|
||||
canonicalAlias: canonicalAlias,
|
||||
displayName: name,
|
||||
@@ -168,6 +169,6 @@ private extension SpaceRoom {
|
||||
state: membership,
|
||||
heroes: heroes,
|
||||
via: via,
|
||||
isDm: false)
|
||||
isDm: isDM)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user