mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 06:49:22 +00:00
Better handle errors
This commit is contained in:
parent
3cf9ee39d0
commit
ae9491e198
@ -120,11 +120,12 @@ class _CustomEmojiesAccountBodyState extends State<_CustomEmojiesAccountBody> {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
await SettingsHelper.deleteCustomEmoji(u.id);
|
await SettingsHelper.deleteCustomEmoji(u.id);
|
||||||
|
|
||||||
_key.currentState.refresh();
|
|
||||||
} catch (e, stack) {
|
} catch (e, stack) {
|
||||||
print("Could not delete custom emoji! $e\n$stack");
|
print("Could not delete custom emoji! $e\n$stack");
|
||||||
|
showSimpleSnack(context, tr("Could not delete custom emoji!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_key.currentState.refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user