Skip to content

Commit

Permalink
TW-2214: Fix Wrong behaviour when sharing a file from other app to Twake
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev authored and hoangdat committed Jan 24, 2025
1 parent 29e803c commit 60e2900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pages/chat_list/receive_sharing_intent_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ mixin ReceiveSharingIntentMixin<T extends StatefulWidget> on State<T> {
if (_intentOpenApp(text)) {
return;
}
openSharePage();
WidgetsBinding.instance.addPostFrameCallback((_) {
UrlLauncher(context, url: text).openMatrixToUrl();
UrlLauncher(TwakeApp.routerKey.currentContext!, url: text)
.openMatrixToUrl();
});
}

Expand Down

0 comments on commit 60e2900

Please sign in to comment.