1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-26 04:48:51 +00:00

Better handle errors

This commit is contained in:
Pierre HUBERT 2020-04-29 17:24:33 +02:00
parent 3cf9ee39d0
commit ae9491e198

View File

@ -120,11 +120,12 @@ class _CustomEmojiesAccountBodyState extends State<_CustomEmojiesAccountBody> {
return;
await SettingsHelper.deleteCustomEmoji(u.id);
_key.currentState.refresh();
} catch (e, stack) {
print("Could not delete custom emoji! $e\n$stack");
showSimpleSnack(context, tr("Could not delete custom emoji!"));
}
_key.currentState.refresh();
}
}