From 07dfdb3350b79906bb0709cdb507a85cb2bf0fb9 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 18 Oct 2022 17:46:12 +1100 Subject: [PATCH 1/2] fix: remove spinner of first poll of sogs even when not selected --- .../open_group_api/opengroupV2/OpenGroupServerPoller.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ts/session/apis/open_group_api/opengroupV2/OpenGroupServerPoller.ts b/ts/session/apis/open_group_api/opengroupV2/OpenGroupServerPoller.ts index 99e925faa..0ffafa19e 100644 --- a/ts/session/apis/open_group_api/opengroupV2/OpenGroupServerPoller.ts +++ b/ts/session/apis/open_group_api/opengroupV2/OpenGroupServerPoller.ts @@ -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); From 3c17d5cc05726d868d736adc16233a94cc1adb0a Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 18 Oct 2022 17:46:28 +1100 Subject: [PATCH 2/2] chore: bump to Session 1.10.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 241029303..1af816b57 100644 --- a/package.json +++ b/package.json @@ -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",