fix null check
This commit is contained in:
parent
572402980c
commit
c4c1c676da
|
|
@ -860,7 +860,7 @@ class FamedlySdkHiveDatabase extends DatabaseApi {
|
|||
final eventsInRoomStateBox = states?.values
|
||||
?.map((raw) => Event.fromJson(convertToJson(raw), room))
|
||||
?.toList();
|
||||
|
||||
if (eventsInRoomStateBox != null) {
|
||||
for (final event in eventsInRoomStateBox) {
|
||||
if (event.type == 'm.room.message') {
|
||||
stateMap.values.first['content']['m.relates_to'] == null
|
||||
|
|
@ -873,6 +873,8 @@ class FamedlySdkHiveDatabase extends DatabaseApi {
|
|||
await _roomStateBox.put(key, stateMap);
|
||||
}
|
||||
}
|
||||
await _roomStateBox.put(key, stateMap);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue