mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 19:58:57 +03:00
Apply presence to all DMs with a user
Change-Id: I7193cb5975a6a2e20055f5f99f8fa116b8dc1470
This commit is contained in:
parent
65602e89c4
commit
c8abe21ec0
1 changed files with 3 additions and 2 deletions
|
@ -73,6 +73,7 @@ internal fun RoomSummaryEntity.Companion.updateDirectUserPresence(realm: Realm,
|
|||
RoomSummaryEntity.where(realm)
|
||||
.equalTo(RoomSummaryEntityFields.IS_DIRECT, true)
|
||||
.equalTo(RoomSummaryEntityFields.DIRECT_USER_ID, directUserId)
|
||||
.findFirst()
|
||||
?.directUserPresence = userPresenceEntity
|
||||
.findAll().forEach {
|
||||
it.directUserPresence = userPresenceEntity
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue