Apply presence to all DMs with a user
Change-Id: I7193cb5975a6a2e20055f5f99f8fa116b8dc1470
This commit is contained in:
parent
65602e89c4
commit
c8abe21ec0
@ -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…
Reference in New Issue
Block a user