mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	fix: ImageViewer again
This commit is contained in:
		
							parent
							
								
									004d6b2c83
								
							
						
					
					
						commit
						53b6c8bb28
					
				@ -99,8 +99,13 @@ class ChatController extends State<Chat> {
 | 
			
		||||
      try {
 | 
			
		||||
        await timeline.requestHistory(historyCount: _loadHistoryCount);
 | 
			
		||||
      } catch (err) {
 | 
			
		||||
        ScaffoldMessenger.of(context).showSnackBar(SnackBar(
 | 
			
		||||
            content: Text((err as Object).toLocalizedString(context))));
 | 
			
		||||
        ScaffoldMessenger.of(context).showSnackBar(
 | 
			
		||||
          SnackBar(
 | 
			
		||||
            content: Text(
 | 
			
		||||
              (err as Object).toLocalizedString(context),
 | 
			
		||||
            ),
 | 
			
		||||
          ),
 | 
			
		||||
        );
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@ -240,6 +240,7 @@ class _ImageBubbleState extends State<ImageBubble> {
 | 
			
		||||
          if (!widget.tapToView) return;
 | 
			
		||||
          showDialog(
 | 
			
		||||
            context: Matrix.of(context).navigatorContext,
 | 
			
		||||
            useRootNavigator: false,
 | 
			
		||||
            builder: (_) => ImageViewer(widget.event, onLoaded: () {
 | 
			
		||||
              // If the original file didn't load yet, we want to do that now.
 | 
			
		||||
              // This is so that the original file displays after going on the image viewer,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user