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<IList<Event>> getRoomState(GetRoomStateRequest request) async {
|
||||||
Future<List?> getState(GetRoomStateRequest request) =>
|
Future<List?> getState(GetRoomStateRequest request) async =>
|
||||||
_sendCommand("get_room_state", request.toJson()) as Future<List?>;
|
(await _sendCommand("get_room_state", request.toJson())) as List?;
|
||||||
final response = await getState(request);
|
final response = await getState(request);
|
||||||
|
|
||||||
return (response ?? await getState(request.copyWith(refetch: true)) ?? [])
|
return (response ?? await getState(request.copyWith(refetch: true)) ?? [])
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ extension SchemeToTheme on ColorScheme {
|
||||||
backgroundColor: surfaceContainerLow,
|
backgroundColor: surfaceContainerLow,
|
||||||
),
|
),
|
||||||
textTheme: ThemeData(
|
textTheme: ThemeData(
|
||||||
fontFamilyFallback: ["sans"],
|
fontFamilyFallback: ["sans", "emoji"],
|
||||||
brightness: brightness,
|
brightness: brightness,
|
||||||
).textTheme,
|
).textTheme,
|
||||||
inputDecorationTheme: const InputDecorationTheme(
|
inputDecorationTheme: const InputDecorationTheme(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue