Merge pull request #2561 from Bilb/fix-spinner-sogs-just-joined

ix: remove spinner of first poll of sogs even when not selected + bump release
pull/2563/head
Audric Ackermann 3 years ago committed by GitHub
commit ab0b522fa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@
"name": "session-desktop",
"productName": "Session",
"description": "Private messaging from your desktop",
"version": "1.10.2",
"version": "1.10.3",
"license": "GPL-3.0",
"author": {
"name": "Oxen Labs",

@ -322,6 +322,8 @@ export class OpenGroupServerPoller {
// ==> At this point all those results need to trigger conversation updates, so update what we have to update
await handleBatchPollResults(this.serverUrl, batchPollResults, subrequestOptions);
// this is very hacky but is needed to remove the spinner of an opengroup conversation while it loads the first patch of messages.
// Absolutely not the react way, but well.
for (const room of subrequestOptions) {
if (room.type === 'messages' && !room.messages?.sinceSeqNo && room.messages?.roomId) {
const conversationKey = getOpenGroupV2ConversationId(
@ -346,6 +348,13 @@ export class OpenGroupServerPoller {
})
);
});
} else {
window.inboxStore?.dispatch(
markConversationInitialLoadingInProgress({
conversationKey,
isInitialFetchingInProgress: false,
})
);
}
}
}, 5000);

Loading…
Cancel
Save