Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Fix collection attribute motification

Neeraj Gupta8d7eef99adb1
diff --git a/mobile/lib/services/collections_service.dart b/mobile/lib/services/collections_service.dart
index 941f874d38..75ada90f20 100644
--- a/mobile/lib/services/collections_service.dart
+++ b/mobile/lib/services/collections_service.dart
@@ -798,7 +798,7 @@ class CollectionsService {
);
await _enteDio.put(
"/collections/magic-metadata",
- data: params,
+ data: params.toJson(),
);
// update the local information so that it's reflected on UI
collection.mMdEncodedJson = jsonEncode(jsonToUpdate);
@@ -857,7 +857,7 @@ class CollectionsService {
);
await _enteDio.put(
"/collections/public-magic-metadata",
- data: params,
+ data: params.toJson(),
);
// update the local information so that it's reflected on UI
collection.mMdPubEncodedJson = jsonEncode(jsonToUpdate);
@@ -917,7 +917,7 @@ class CollectionsService {
);
await _enteDio.put(
"/collections/sharee-magic-metadata",
- data: params,
+ data: params.toJson(),
);
// update the local information so that it's reflected on UI
collection.sharedMmdJson = jsonEncode(jsonToUpdate);