Add some logging around setting preferred reaction emojis

This commit is contained in:
Josh Perez 2021-12-06 11:39:48 -05:00 committed by GitHub
parent 2136c5311b
commit 978f57f076
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -887,6 +887,15 @@ export async function mergeAccountRecord(
}
if (preferredReactionEmoji.canBeSynced(rawPreferredReactionEmoji)) {
const localPreferredReactionEmoji =
window.storage.get('preferredReactionEmoji') || [];
if (!isEqual(localPreferredReactionEmoji, rawPreferredReactionEmoji)) {
log.info(
'storageService: remote and local preferredReactionEmoji do not match',
localPreferredReactionEmoji.length,
rawPreferredReactionEmoji.length
);
}
window.storage.put('preferredReactionEmoji', rawPreferredReactionEmoji);
}