unify errors, refactor retry_queue

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-06-02 17:56:38 +05:30
parent 927eb3c451
commit 12e6b9c500
18 changed files with 486 additions and 381 deletions
@@ -341,7 +341,8 @@ class _MessageActionsModalState extends State<MessageActionsModal> {
okText: 'OK',
);
} catch (err) {
if (err is ApiError && json.decode(err.body ?? '{}')['code'] == 4) {
if (err is StreamChatNetworkError &&
err.errorCode == ChatErrorCode.inputError) {
await showInfoDialog(
context,
icon: StreamSvgIcon.flag(