Use SimpleDialogs

This commit is contained in:
Christian Pauly 2020-04-27 13:36:39 +02:00
commit 547aace85c
21 changed files with 119 additions and 111 deletions

View file

@ -84,7 +84,7 @@ class _ChatListState extends State<ChatList> {
coolDown = Timer(Duration(seconds: 1), () async {
setState(() => loadingPublicRooms = true);
final newPublicRoomsResponse =
await Matrix.of(context).tryRequestWithErrorToast(
await SimpleDialogs(context).tryRequestWithErrorToast(
Matrix.of(context).client.requestPublicRooms(
limit: 30,
includeAllNetworks: true,
@ -190,7 +190,7 @@ class _ChatListState extends State<ChatList> {
hintText: I18n.of(context).statusExampleMessage,
);
if (status?.isEmpty ?? true) return;
await Matrix.of(context).tryRequestWithLoadingDialog(
await SimpleDialogs(context).tryRequestWithLoadingDialog(
Matrix.of(context).client.jsonRequest(
type: HTTPType.PUT,
action: