Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix breaking change

ashilkna67da8102d10
diff --git a/mobile/lib/ui/tabs/home_widget.dart b/mobile/lib/ui/tabs/home_widget.dart
index 561b1f4ba1..802b40be89 100644
--- a/mobile/lib/ui/tabs/home_widget.dart
+++ b/mobile/lib/ui/tabs/home_widget.dart
@@ -284,7 +284,7 @@ class _HomeWidgetState extends State<HomeWidget> {
void _initMediaShareSubscription() {
// For sharing images coming from outside the app while the app is in the memory
_intentDataStreamSubscription =
- ReceiveSharingIntent.getMediaStream().listen(
+ ReceiveSharingIntent.instance.getMediaStream().listen(
(List<SharedMediaFile> value) {
setState(() {
_shouldRenderCreateCollectionSheet = true;
@@ -296,7 +296,9 @@ class _HomeWidgetState extends State<HomeWidget> {
},
);
// For sharing images coming from outside the app while the app is closed
- ReceiveSharingIntent.getInitialMedia().then((List<SharedMediaFile> value) {
+ ReceiveSharingIntent.instance
+ .getInitialMedia()
+ .then((List<SharedMediaFile> value) {
if (mounted) {
setState(() {
_sharedFiles = value;
@@ -380,7 +382,7 @@ class _HomeWidgetState extends State<HomeWidget> {
//So to stop showing multiple CreateCollectionSheets, this flag
//needs to be set to false the first time it is rendered.
_shouldRenderCreateCollectionSheet = false;
- ReceiveSharingIntent.reset();
+ ReceiveSharingIntent.instance.reset();
Future.delayed(const Duration(milliseconds: 10), () {
showCollectionActionSheet(
context,
diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml
index 33da8f0a55..56cb9331e2 100644
--- a/mobile/pubspec.yaml
+++ b/mobile/pubspec.yaml
@@ -137,7 +137,7 @@ dependencies:
pointycastle: ^3.7.3
provider: ^6.0.0
quiver: ^3.0.1
- receive_sharing_intent: ^1.6.7
+ receive_sharing_intent: ^1.7.0
scrollable_positioned_list: ^0.3.5
sentry: ^7.9.0
sentry_flutter: ^7.9.0