Page MenuHomePhorge

D12789.1765099205.diff
No OneTemporary

Size
1021 B
Referenced Files
None
Subscribers
None

D12789.1765099205.diff

diff --git a/native/redux/persist.js b/native/redux/persist.js
--- a/native/redux/persist.js
+++ b/native/redux/persist.js
@@ -104,6 +104,7 @@
LegacyRawThreadInfo,
MixedRawThreadInfos,
} from 'lib/types/thread-types.js';
+import { stripMemberPermissionsFromRawThreadInfos } from 'lib/utils/member-info-utils.js';
import {
translateClientDBMessageInfoToRawMessageInfo,
translateRawMessageInfoToClientDBMessageInfo,
@@ -1414,6 +1415,22 @@
ops: [],
};
},
+ [80]: (state: AppState) => {
+ const clientDBThreadInfos = commCoreModule.getAllThreadsSync();
+
+ const dbOperations = createUpdateDBOpsForThreadStoreThreadInfos(
+ clientDBThreadInfos,
+ // We know that we're dealing with `ThinRawThreadInfoWithPermissions`
+ // at time of this migration.
+ // $FlowFixMe
+ stripMemberPermissionsFromRawThreadInfos,
+ );
+
+ return {
+ state,
+ ops: dbOperations,
+ };
+ },
};
// NOTE: renaming this object, and especially the `version` property

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 7, 9:20 AM (19 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5843281
Default Alt Text
D12789.1765099205.diff (1021 B)

Event Timeline