Skip to content

Commit

Permalink
runfix: Avoid sending countly device ID before self conversation is j…
Browse files Browse the repository at this point in the history
…oined
  • Loading branch information
atomrc committed Jan 18, 2024
1 parent 8863c3c commit df48f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/script/main/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,10 @@ export class App {
telemetry.timeStep(AppInitTimingsStep.UPDATED_FROM_NOTIFICATIONS);
telemetry.addStatistic(AppInitStatisticsValue.NOTIFICATIONS, totalNotifications, 100);

eventTrackerRepository.init(propertiesRepository.properties.settings.privacy.telemetry_sharing);
onProgress(97.5, t('initUpdatedFromNotifications', this.config.BRAND_NAME));

const clientEntities = await clientRepository.updateClientsForSelf();
await eventTrackerRepository.init(propertiesRepository.properties.settings.privacy.telemetry_sharing);

onProgress(99);

Expand Down
5 changes: 1 addition & 4 deletions src/script/mls/MLSConversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ export async function initMLSGroupConversations(

//otherwise we should try joining via external commit
await conversationService.joinByExternalCommit(qualifiedId);

if (onSuccessfulJoin) {
return onSuccessfulJoin(mlsConversation);
}
onSuccessfulJoin?.(mlsConversation);
} catch (error) {
onError?.(mlsConversation, error);
}
Expand Down

0 comments on commit df48f9d

Please sign in to comment.