fix: Set status

This commit is contained in:
Christian Pauly 2021-01-16 21:33:07 +01:00
parent 7f51f7f6b6
commit 7063b340ac

View File

@ -14,6 +14,7 @@ class DefaultDrawer extends StatelessWidget {
}
void _setStatus(BuildContext context) async {
final client = Matrix.of(context).client;
Navigator.of(context).pop();
final input = await showTextInputDialog(
title: L10n.of(context).setStatus,
@ -25,7 +26,6 @@ class DefaultDrawer extends StatelessWidget {
],
);
if (input == null || input.single.isEmpty) return;
final client = Matrix.of(context).client;
await showFutureLoadingDialog(
context: context,
future: () => client.sendPresence(