fix(reactions): Fix progress bar advancing too slowly

This commit is contained in:
octoshrimpy
2026-09-18 18:12:10 -06:00
committed by Inhishonor
parent 41ac7ffe53
commit 5805b6b7bb
@@ -346,18 +346,18 @@ class EmojiReactionRepositoryImpl @Inject constructor(
targetMessage, targetMessage,
realm, realm,
) )
progress++ }
// Update the progress every 25 messages, and then at completion progress++
// that way we don't spam the UI // Update the progress every 25 messages, and then at completion
if (progress % 25 == 0 || progress == max) { // that way we don't spam the UI
onProgress( if (progress % 25 == 0 || progress == max) {
SyncRepository.SyncProgress.ParsingEmojis( onProgress(
max = max, SyncRepository.SyncProgress.ParsingEmojis(
progress = progress, max = max,
indeterminate = false progress = progress,
) indeterminate = false
) )
} )
} }
} }