[Room] Add null checker.
This commit is contained in:
		
							parent
							
								
									ed9e0caea5
								
							
						
					
					
						commit
						964f8c1f36
					
				|  | @ -70,7 +70,7 @@ class Room { | |||
|   Map<String, RoomAccountData> roomAccountData = {}; | ||||
| 
 | ||||
|   /// ID of the fully read marker event. | ||||
|   String get fullyRead => roomAccountData["m.fully_read"].content["event_id"]; | ||||
|   String get fullyRead => roomAccountData["m.fully_read"] != null ? roomAccountData["m.fully_read"].content["event_id"] : ""; | ||||
| 
 | ||||
|   /// If something changes, this callback will be triggered. | ||||
|   onRoomUpdate onUpdate; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue