Page MenuHomePhabricator

D7625.diff
No OneTemporary

D7625.diff

diff --git a/native/redux/client-db-utils.js b/native/redux/client-db-utils.js
--- a/native/redux/client-db-utils.js
+++ b/native/redux/client-db-utils.js
@@ -6,6 +6,7 @@
RawThreadInfo,
ThreadStoreThreadInfos,
} from 'lib/types/thread-types.js';
+import { values } from 'lib/utils/objects.js';
import {
convertClientDBThreadInfoToRawThreadInfo,
convertRawThreadInfoToClientDBThreadInfo,
@@ -37,9 +38,9 @@
migrationFunc(threadIDToThreadInfo);
// 5. Convert the updated `threadInfo`s back into an array.
- const updatedRawThreadInfos: $ReadOnlyArray<RawThreadInfo> = Object.keys(
+ const updatedRawThreadInfos: $ReadOnlyArray<RawThreadInfo> = values(
updatedThreadIDToThreadInfo,
- ).map(id => updatedThreadIDToThreadInfo[id]);
+ );
// 6. Translate `RawThreadInfo`s to `ClientDBThreadInfo`s.
const convertedClientDBThreadInfos: $ReadOnlyArray<ClientDBThreadInfo> =

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 9, 2:07 PM (19 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2452792
Default Alt Text
D7625.diff (905 B)

Event Timeline