mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-16 03:08:58 +03:00
Fix crash reported by Rageshake, stateKey can be null
This commit is contained in:
parent
b766bce07d
commit
0040f8e924
1 changed files with 1 additions and 0 deletions
|
@ -73,6 +73,7 @@ internal class RoomMembers(private val realm: Realm,
|
|||
return EventEntity
|
||||
.where(realm, roomId, EventType.STATE_ROOM_MEMBER)
|
||||
.sort(EventEntityFields.STATE_INDEX, Sort.DESCENDING)
|
||||
.isNotNull(EventEntityFields.STATE_KEY)
|
||||
.distinct(EventEntityFields.STATE_KEY)
|
||||
.isNotNull(EventEntityFields.CONTENT)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue