Page MenuHomePhabricator

D5543.id18245.diff
No OneTemporary

D5543.id18245.diff

diff --git a/native/data/sqlite-context-provider.js b/native/data/sqlite-context-provider.js
--- a/native/data/sqlite-context-provider.js
+++ b/native/data/sqlite-context-provider.js
@@ -38,7 +38,10 @@
}
(async () => {
try {
- const threads = await commCoreModule.getAllThreads();
+ const [threads, messages] = await Promise.all([
+ commCoreModule.getAllThreads(),
+ commCoreModule.getAllMessages(),
+ ]);
const threadInfosFromDB = convertClientDBThreadInfosToRawThreadInfos(
threads,
);
@@ -46,7 +49,6 @@
type: setThreadStoreActionType,
payload: { threadInfos: threadInfosFromDB },
});
- const messages = await commCoreModule.getAllMessages();
dispatch({
type: setMessageStoreMessages,
payload: messages,

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 29, 1:57 AM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2595428
Default Alt Text
D5543.id18245.diff (861 B)

Event Timeline