diff --git a/lib/src/Room.dart b/lib/src/Room.dart index a6c86bd8..7a777830 100644 --- a/lib/src/Room.dart +++ b/lib/src/Room.dart @@ -126,7 +126,7 @@ class Room { Event get lastEvent { ChatTime lastTime = ChatTime(0); - Event lastEvent = Event(); + Event lastEvent = null; states.forEach((String key, RoomState state) { if (state.time > lastTime) { lastTime = state.time;