mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Better handle errors
This commit is contained in:
		@@ -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();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user