[Room] Fix setState

This commit is contained in:
Christian Pauly 2020-02-24 10:34:28 +01:00
parent 0ca36473fa
commit ccb1945d00

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)) {