diff --git a/apps/android/app/src/main/java/chat/simplex/app/views/chat/item/CIRcvDecryptionError.kt b/apps/android/app/src/main/java/chat/simplex/app/views/chat/item/CIRcvDecryptionError.kt index 23960060be..22e1e98f99 100644 --- a/apps/android/app/src/main/java/chat/simplex/app/views/chat/item/CIRcvDecryptionError.kt +++ b/apps/android/app/src/main/java/chat/simplex/app/views/chat/item/CIRcvDecryptionError.kt @@ -12,12 +12,12 @@ fun CIRcvDecryptionError(msgDecryptError: MsgDecryptError, msgCount: UInt, ci: C AlertManager.shared.showAlertMsg( title = generalGetString(R.string.decryption_error), text = when (msgDecryptError) { - MsgDecryptError.RatchetHeader -> String.format(generalGetString(R.string.alert_text_decryption_error_header), msgCount) + "\n" + + MsgDecryptError.RatchetHeader -> String.format(generalGetString(R.string.alert_text_decryption_error_header), msgCount.toLong()) + "\n" + generalGetString(R.string.alert_text_fragment_encryption_out_of_sync_old_database) + "\n" + generalGetString(R.string.alert_text_fragment_permanent_error_reconnect) - MsgDecryptError.Earlier -> String.format(generalGetString(R.string.alert_text_decryption_error_earlier), msgCount) + "\n" + + MsgDecryptError.Earlier -> String.format(generalGetString(R.string.alert_text_decryption_error_earlier), msgCount.toLong()) + "\n" + generalGetString(R.string.alert_text_fragment_encryption_out_of_sync_old_database) - MsgDecryptError.TooManySkipped -> String.format(generalGetString(R.string.alert_text_decryption_error_too_many_skipped), msgCount) + "\n" + + MsgDecryptError.TooManySkipped -> String.format(generalGetString(R.string.alert_text_decryption_error_too_many_skipped), msgCount.toLong()) + "\n" + generalGetString(R.string.alert_text_fragment_encryption_out_of_sync_old_database) + "\n" + generalGetString(R.string.alert_text_fragment_permanent_error_reconnect) }