mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
Fix code quality issues
This commit is contained in:
parent
68db9c1cc0
commit
eec470f2ce
3 changed files with 9 additions and 8 deletions
|
@ -665,12 +665,14 @@ internal class KeysBackup @Inject constructor(
|
|||
}
|
||||
}
|
||||
}
|
||||
Timber.v("restoreKeysWithRecoveryKey: Decrypted ${sessionsData.size} keys out of $sessionsFromHsCount from the backup store on the homeserver")
|
||||
Timber.v("restoreKeysWithRecoveryKey: Decrypted ${sessionsData.size} keys out" +
|
||||
" of $sessionsFromHsCount from the backup store on the homeserver")
|
||||
|
||||
// Do not trigger a backup for them if they come from the backup version we are using
|
||||
val backUp = keysVersionResult.version != keysBackupVersion?.version
|
||||
if (backUp) {
|
||||
Timber.v("restoreKeysWithRecoveryKey: Those keys will be backed up to backup version: ${keysBackupVersion?.version}")
|
||||
Timber.v("restoreKeysWithRecoveryKey: Those keys will be backed up" +
|
||||
" to backup version: ${keysBackupVersion?.version}")
|
||||
}
|
||||
|
||||
// Import them into the crypto store
|
||||
|
|
|
@ -641,8 +641,7 @@ class RoomDetailFragment :
|
|||
inviteView.callback = this
|
||||
}
|
||||
|
||||
/*
|
||||
private fun onSendChoiceClicked(dialogListItem: DialogListItem) {
|
||||
/* private fun onSendChoiceClicked(dialogListItem: DialogListItem) {
|
||||
Timber.v("On send choice clicked: $dialogListItem")
|
||||
when (dialogListItem) {
|
||||
is DialogListItem.SendFile -> {
|
||||
|
@ -667,8 +666,8 @@ class RoomDetailFragment :
|
|||
// launchNativeVideoRecorder()
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
} */
|
||||
|
||||
private fun handleMediaIntent(data: Intent) {
|
||||
val files: ArrayList<MediaFile> = data.getParcelableArrayListExtra(FilePickerActivity.MEDIA_FILES)
|
||||
roomDetailViewModel.process(RoomDetailActions.SendMedia(files))
|
||||
|
|
|
@ -407,7 +407,7 @@ class RoomDetailViewModel @AssistedInject constructor(@Assisted initialState: Ro
|
|||
val quotedTextMsg = StringBuilder()
|
||||
if (messageParagraphs != null) {
|
||||
for (i in messageParagraphs.indices) {
|
||||
if (messageParagraphs[i].trim { it <= ' ' } != "") {
|
||||
if (messageParagraphs[i].trim() != "") {
|
||||
quotedTextMsg.append("> ").append(messageParagraphs[i])
|
||||
}
|
||||
|
||||
|
@ -759,4 +759,4 @@ class RoomDetailViewModel @AssistedInject constructor(@Assisted initialState: Ro
|
|||
super.onCleared()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue