mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 06:52:35 +01:00
fix: Set status
This commit is contained in:
parent
7f51f7f6b6
commit
7063b340ac
@ -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…
Reference in New Issue
Block a user