From 5805b6b7bb579e4e995644e0e418f722b2e57128 Mon Sep 17 00:00:00 2001 From: octoshrimpy Date: Fri, 18 Sep 2026 18:12:10 -0600 Subject: [PATCH] fix(reactions): Fix progress bar advancing too slowly --- .../repository/EmojiReactionRepositoryImpl.kt | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/data/src/main/java/com/moez/QKSMS/repository/EmojiReactionRepositoryImpl.kt b/data/src/main/java/com/moez/QKSMS/repository/EmojiReactionRepositoryImpl.kt index a369c416..29fbab2a 100644 --- a/data/src/main/java/com/moez/QKSMS/repository/EmojiReactionRepositoryImpl.kt +++ b/data/src/main/java/com/moez/QKSMS/repository/EmojiReactionRepositoryImpl.kt @@ -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 ) - } + ) } }