mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 04:20:00 +03:00
Fix bug on progress step, found by integration test testBackupWithPassword()
This commit is contained in:
parent
b680e24938
commit
96af1957f9
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ internal class MegolmSessionDataImporter @Inject constructor(private val olmDevi
|
|||
}
|
||||
|
||||
if (progressListener != null) {
|
||||
val progress = 100 * cpt / totalNumbersOfKeys
|
||||
val progress = 100 * (cpt + 1) / totalNumbersOfKeys
|
||||
|
||||
if (lastProgress != progress) {
|
||||
lastProgress = progress
|
||||
|
|
Loading…
Add table
Reference in a new issue