Update lib/src/Room.dart
This commit is contained in:
parent
cf60b50954
commit
167a7155f8
|
@ -130,7 +130,7 @@ class Room {
|
|||
|
||||
/// The last message sent to this room.
|
||||
String get lastMessage {
|
||||
if (events?.length > 0)
|
||||
if (events != null && events.length > 0)
|
||||
return events[0].getBody();
|
||||
else
|
||||
return "";
|
||||
|
|
Loading…
Reference in a new issue