mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 00:07:56 +01:00
preferContactAvatars: Only force re-rendering if initial sync complete
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
@@ -1695,7 +1695,13 @@ export async function mergeAccountRecord(
|
||||
const previous = itemStorage.get('preferContactAvatars');
|
||||
await itemStorage.put('preferContactAvatars', preferContactAvatars);
|
||||
|
||||
if (Boolean(previous) !== Boolean(preferContactAvatars)) {
|
||||
const postRegistrationSyncsComplete =
|
||||
itemStorage.get('postRegistrationSyncsStatus') !== 'incomplete';
|
||||
|
||||
if (
|
||||
Boolean(previous) !== Boolean(preferContactAvatars) &&
|
||||
postRegistrationSyncsComplete
|
||||
) {
|
||||
await window.ConversationController.forceRerender();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user