File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
ts/session/apis/open_group_api/opengroupV2 Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -322,6 +322,8 @@ export class OpenGroupServerPoller {
322
322
// ==> At this point all those results need to trigger conversation updates, so update what we have to update
323
323
await handleBatchPollResults ( this . serverUrl , batchPollResults , subrequestOptions ) ;
324
324
325
+ // this is very hacky but is needed to remove the spinner of an opengroup conversation while it loads the first patch of messages.
326
+ // Absolutely not the react way, but well.
325
327
for ( const room of subrequestOptions ) {
326
328
if ( room . type === 'messages' && ! room . messages ?. sinceSeqNo && room . messages ?. roomId ) {
327
329
const conversationKey = getOpenGroupV2ConversationId (
@@ -346,6 +348,13 @@ export class OpenGroupServerPoller {
346
348
} )
347
349
) ;
348
350
} ) ;
351
+ } else {
352
+ window . inboxStore ?. dispatch (
353
+ markConversationInitialLoadingInProgress ( {
354
+ conversationKey,
355
+ isInitialFetchingInProgress : false ,
356
+ } )
357
+ ) ;
349
358
}
350
359
}
351
360
} , 5000 ) ;
You can’t perform that action at this time.
0 commit comments