Fix state type error
This commit is contained in:
parent
92e5206326
commit
e2d29439d5
2 changed files with 3 additions and 3 deletions
|
|
@ -183,8 +183,8 @@ class ClientController extends AsyncNotifier<int> {
|
|||
// }));
|
||||
|
||||
Future<IList<Event>> getRoomState(GetRoomStateRequest request) async {
|
||||
Future<List?> getState(GetRoomStateRequest request) =>
|
||||
_sendCommand("get_room_state", request.toJson()) as Future<List?>;
|
||||
Future<List?> getState(GetRoomStateRequest request) async =>
|
||||
(await _sendCommand("get_room_state", request.toJson())) as List?;
|
||||
final response = await getState(request);
|
||||
|
||||
return (response ?? await getState(request.copyWith(refetch: true)) ?? [])
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ extension SchemeToTheme on ColorScheme {
|
|||
backgroundColor: surfaceContainerLow,
|
||||
),
|
||||
textTheme: ThemeData(
|
||||
fontFamilyFallback: ["sans"],
|
||||
fontFamilyFallback: ["sans", "emoji"],
|
||||
brightness: brightness,
|
||||
).textTheme,
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue