mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +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
|
// Do not trigger a backup for them if they come from the backup version we are using
|
||||||
val backUp = keysVersionResult.version != keysBackupVersion?.version
|
val backUp = keysVersionResult.version != keysBackupVersion?.version
|
||||||
if (backUp) {
|
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
|
// Import them into the crypto store
|
||||||
|
|
|
@ -641,8 +641,7 @@ class RoomDetailFragment :
|
||||||
inviteView.callback = this
|
inviteView.callback = this
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* private fun onSendChoiceClicked(dialogListItem: DialogListItem) {
|
||||||
private fun onSendChoiceClicked(dialogListItem: DialogListItem) {
|
|
||||||
Timber.v("On send choice clicked: $dialogListItem")
|
Timber.v("On send choice clicked: $dialogListItem")
|
||||||
when (dialogListItem) {
|
when (dialogListItem) {
|
||||||
is DialogListItem.SendFile -> {
|
is DialogListItem.SendFile -> {
|
||||||
|
@ -667,8 +666,8 @@ class RoomDetailFragment :
|
||||||
// launchNativeVideoRecorder()
|
// launchNativeVideoRecorder()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
*/
|
|
||||||
private fun handleMediaIntent(data: Intent) {
|
private fun handleMediaIntent(data: Intent) {
|
||||||
val files: ArrayList<MediaFile> = data.getParcelableArrayListExtra(FilePickerActivity.MEDIA_FILES)
|
val files: ArrayList<MediaFile> = data.getParcelableArrayListExtra(FilePickerActivity.MEDIA_FILES)
|
||||||
roomDetailViewModel.process(RoomDetailActions.SendMedia(files))
|
roomDetailViewModel.process(RoomDetailActions.SendMedia(files))
|
||||||
|
|
|
@ -407,7 +407,7 @@ class RoomDetailViewModel @AssistedInject constructor(@Assisted initialState: Ro
|
||||||
val quotedTextMsg = StringBuilder()
|
val quotedTextMsg = StringBuilder()
|
||||||
if (messageParagraphs != null) {
|
if (messageParagraphs != null) {
|
||||||
for (i in messageParagraphs.indices) {
|
for (i in messageParagraphs.indices) {
|
||||||
if (messageParagraphs[i].trim { it <= ' ' } != "") {
|
if (messageParagraphs[i].trim() != "") {
|
||||||
quotedTextMsg.append("> ").append(messageParagraphs[i])
|
quotedTextMsg.append("> ").append(messageParagraphs[i])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -759,4 +759,4 @@ class RoomDetailViewModel @AssistedInject constructor(@Assisted initialState: Ro
|
||||||
super.onCleared()
|
super.onCleared()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue