[Room] Fix tests
This commit is contained in:
parent
c04a3debe4
commit
58976c3b9c
|
@ -131,7 +131,7 @@ class Room {
|
||||||
ChatTime lastTime = ChatTime(0);
|
ChatTime lastTime = ChatTime(0);
|
||||||
Event lastEvent = null;
|
Event lastEvent = null;
|
||||||
states.forEach((String key, RoomState state) {
|
states.forEach((String key, RoomState state) {
|
||||||
if (state.time > lastTime) {
|
if (state.time != null && state.time > lastTime) {
|
||||||
lastTime = state.time;
|
lastTime = state.time;
|
||||||
lastEvent = state.timelineEvent;
|
lastEvent = state.timelineEvent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue