Merge pull request #1101 from GetStream/hotfix/attachmentDownload

fix(ui): remove check for launchUrl
This commit is contained in:
Salvatore Giordano
2022-04-25 12:37:08 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
@@ -4,6 +4,7 @@
- [[#1067]](https://github.com/GetStream/stream-chat-flutter/issues/1067): Fix name text overflow in reaction card.
- [[#842]](https://github.com/GetStream/stream-chat-flutter/issues/842): show date divider for first message.
- Loosen up url check for attachment download.
## 3.6.1
@@ -8,9 +8,9 @@ import 'package:url_launcher/url_launcher.dart';
/// Launch URL
Future<void> launchURL(BuildContext context, String url) async {
if (await canLaunch(url)) {
try {
await launch(url);
} else {
} catch (e) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(context.translations.launchUrlError)),
);