mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Fix crash reported by Rageshake, stateKey can be null
This commit is contained in:
parent
b766bce07d
commit
0040f8e924
@ -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…
Reference in New Issue
Block a user