Merge branch 'room-fix-setstate' into 'master'

[Room] Fix setState

See merge request famedly/famedlysdk!224
This commit is contained in:
Christian Pauly 2020-02-24 09:39:19 +00:00
commit ec16fa5f28

View file

@ -217,7 +217,7 @@ class Room {
} }
} }
if ((getState(state.typeKey)?.time?.millisecondsSinceEpoch ?? 0) > if ((getState(state.typeKey)?.time?.millisecondsSinceEpoch ?? 0) >
state.time.millisecondsSinceEpoch) { (state.time?.millisecondsSinceEpoch ?? 1)) {
return; return;
} }
if (!states.states.containsKey(state.typeKey)) { if (!states.states.containsKey(state.typeKey)) {