fix: Open deep link on android

This commit is contained in:
Christian Kußowski 2026-03-30 10:22:15 +02:00
commit 383d708500
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 6 additions and 8 deletions

View file

@ -1,5 +1,4 @@
import 'dart:async';
import 'dart:developer';
import 'package:cross_file/cross_file.dart';
import 'package:fluffychat/config/app_config.dart';
@ -311,11 +310,10 @@ class ChatListController extends State<ChatList>
String? get activeChat => widget.activeChat;
void _processIncomingSharedMedia(List<SharedMediaFile> files) {
files.removeWhere(
(file) => file.path.startsWith(AppConfig.deepLinkPrefix) == true,
);
if (files.isEmpty) return;
inspect(files);
if (files.singleOrNull?.path.startsWith(AppConfig.deepLinkPrefix) == true) {
return;
}
showScaffoldDialog(
context: context,