forked from upstream-mirrors/quik
fix(reactions): Fix progress bar advancing too slowly
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
}
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user