fix: Only try again load mxc image on io exception

pull/1540/head
krille-chan 7 months ago
parent bb5d865b46
commit f301d5edd1
No known key found for this signature in database

@ -1,3 +1,4 @@
import 'dart:io';
import 'dart:typed_data';
import 'package:flutter/material.dart';
@ -110,7 +111,7 @@ class _MxcImageState extends State<MxcImage> {
}
try {
await _load();
} catch (_) {
} on IOException catch (_) {
if (!mounted) return;
await Future.delayed(widget.retryDuration);
_tryLoad(_);

Loading…
Cancel
Save