mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 19:38:52 +01:00
fix(reactions): Fix progress bar advancing too slowly
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user