Merge pull request #1101 from GetStream/hotfix/attachmentDownload
fix(ui): remove check for launchUrl
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
- [[#1067]](https://github.com/GetStream/stream-chat-flutter/issues/1067): Fix name text overflow in reaction card.
|
- [[#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.
|
- [[#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
|
## 3.6.1
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import 'package:url_launcher/url_launcher.dart';
|
|||||||
|
|
||||||
/// Launch URL
|
/// Launch URL
|
||||||
Future<void> launchURL(BuildContext context, String url) async {
|
Future<void> launchURL(BuildContext context, String url) async {
|
||||||
if (await canLaunch(url)) {
|
try {
|
||||||
await launch(url);
|
await launch(url);
|
||||||
} else {
|
} catch (e) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(content: Text(context.translations.launchUrlError)),
|
SnackBar(content: Text(context.translations.launchUrlError)),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user