Apply presence to all DMs with a user

Change-Id: I7193cb5975a6a2e20055f5f99f8fa116b8dc1470
This commit is contained in:
SpiritCroc 2021-11-27 15:33:21 +01:00
parent 65602e89c4
commit c8abe21ec0

View file

@ -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
}
}