fix: Set status
This commit is contained in:
parent
9db9d0cf2c
commit
d80b28856f
1 changed files with 1 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ class DefaultDrawer extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
void _setStatus(BuildContext context) async {
|
void _setStatus(BuildContext context) async {
|
||||||
|
final client = Matrix.of(context).client;
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
final input = await showTextInputDialog(
|
final input = await showTextInputDialog(
|
||||||
title: L10n.of(context).setStatus,
|
title: L10n.of(context).setStatus,
|
||||||
|
|
@ -25,7 +26,6 @@ class DefaultDrawer extends StatelessWidget {
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
if (input == null || input.single.isEmpty) return;
|
if (input == null || input.single.isEmpty) return;
|
||||||
final client = Matrix.of(context).client;
|
|
||||||
await showFutureLoadingDialog(
|
await showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () => client.sendPresence(
|
future: () => client.sendPresence(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue