fix: dont log removing entries from cache when there are none

pull/2454/head
William Grant 3 years ago
parent 3060ffd25a
commit 7c6af17327

@ -131,7 +131,9 @@ export async function processMessagesUsingCache(
}
const removedMatches = remove(sogsMutationCache, ...roomMatches);
window.log.info('SOGS Mutation Cache: Removed processed entries from cache!', removedMatches);
if (removedMatches?.length) {
window.log.info('SOGS Mutation Cache: Removed processed entries from cache!', removedMatches);
}
message.reactions = updatedReactions;
await Reactions.handleOpenGroupMessageReactions(message.reactions, message.id);

Loading…
Cancel
Save