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,
realm,
)
progress++
// Update the progress every 25 messages, and then at completion
// that way we don't spam the UI
if (progress % 25 == 0 || progress == max) {
onProgress(
SyncRepository.SyncProgress.ParsingEmojis(
max = max,
progress = progress,
indeterminate = false
)
}
progress++
// Update the progress every 25 messages, and then at completion
// that way we don't spam the UI
if (progress % 25 == 0 || progress == max) {
onProgress(
SyncRepository.SyncProgress.ParsingEmojis(
max = max,
progress = progress,
indeterminate = false
)
}
)
}
}