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.
|
/// The last message sent to this room.
|
||||||
String get lastMessage {
|
String get lastMessage {
|
||||||
if (events?.length > 0)
|
if (events != null && events.length > 0)
|
||||||
return events[0].getBody();
|
return events[0].getBody();
|
||||||
else
|
else
|
||||||
return "";
|
return "";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue