fix error caused by c10y 779
This commit is contained in:
parent
c784094a4c
commit
18ee13901c
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ class ClientController extends AsyncNotifier<int> {
|
||||||
|
|
||||||
Future<IList<Event>> getRoomState(GetRoomStateRequest request) async {
|
Future<IList<Event>> getRoomState(GetRoomStateRequest request) async {
|
||||||
final response =
|
final response =
|
||||||
(await _sendCommand("get_room_state", request.toJson())) as List;
|
(await _sendCommand("get_room_state", request.toJson())) as List? ?? [];
|
||||||
return response.map((event) => Event.fromJson(event)).toIList();
|
return response.map((event) => Event.fromJson(event)).toIList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue