mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix notifications bar refresh issue
This commit is contained in:
		@@ -43,8 +43,8 @@ class StatusWidgetState extends SafeState<StatusWidget> {
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  void initState() {
 | 
			
		||||
    init();
 | 
			
		||||
    super.initState();
 | 
			
		||||
    init();
 | 
			
		||||
 | 
			
		||||
    listenChangeState<NewNumberNotifsEvent>(
 | 
			
		||||
        (e) => unreadNotifications = e.newNum);
 | 
			
		||||
@@ -58,5 +58,8 @@ class StatusWidgetState extends SafeState<StatusWidget> {
 | 
			
		||||
      c.findAncestorStateOfType<StatusWidgetState>();
 | 
			
		||||
 | 
			
		||||
  @override
 | 
			
		||||
  Widget build(BuildContext context) => widget.child(context);
 | 
			
		||||
  Widget build(BuildContext context) => Container(
 | 
			
		||||
        key: Key("$unreadNotifications-$unreadConversations"),
 | 
			
		||||
        child: widget.child(context),
 | 
			
		||||
      );
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user