make sure to use cached convos for sync logic

otherwise the whole app freezes on a big database
pull/2096/head
Audric Ackermann 3 years ago
parent 5846caffc4
commit eb0cf0938d
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -50,8 +50,7 @@ export const syncConfigurationIfNeeded = async () => {
return; return;
} }
const allConvoCollection = await getAllConversations(); const allConvos = getConversationController().getConversations();
const allConvos = allConvoCollection.models;
const configMessage = await getCurrentConfigurationMessage(allConvos); const configMessage = await getCurrentConfigurationMessage(allConvos);
try { try {

Loading…
Cancel
Save