mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 19:58:57 +03:00
Use RoomSummary to check if the room is direct.
This commit is contained in:
parent
2a96b2c68e
commit
07976988d9
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class NoticeEventFormatter @Inject constructor(private val activeSessionDataSour
|
|||
|
||||
private fun isDirectRoom(roomId: String?): Boolean {
|
||||
return roomId?.let {
|
||||
activeSessionDataSource.currentValue?.orNull()?.getRoom(roomId)?.roomSummary()?.isDirect
|
||||
activeSessionDataSource.currentValue?.orNull()?.getRoomSummary(roomId)?.isDirect
|
||||
}.orFalse()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue