Cache some volatile conversation properties

This commit is contained in:
Fedor Indutny 2022-12-22 16:13:23 -08:00 committed by GitHub
parent ba79595563
commit f92f81dfd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 157 additions and 92 deletions

View file

@ -1033,8 +1033,7 @@ export function isMissingRequiredProfileSharing(
doesConversationRequireIt &&
!conversation.profileSharing &&
window.Signal.RemoteConfig.isEnabled('desktop.mandatoryProfileSharing') &&
conversation.messageCount &&
conversation.messageCount > 0
conversation.hasMessages
);
}