QuickFix / key banner not clickable

This commit is contained in:
Valere 2020-03-17 10:43:48 +01:00
parent ef2783e9f4
commit b37600f536
3 changed files with 7 additions and 1 deletions

View file

@ -11,6 +11,7 @@ Bugfix 🐛:
- Message transitions in encrypted rooms are jarring #518
- Images that failed to send are waiting to be sent forever #1145
- Fix / Crashed when trying to send a gif from the Gboard #1136
- Fix / Cannot click on key backup banner when new keys are available
Translations 🗣:
-

View file

@ -123,6 +123,7 @@ class KeysBackupBanner @JvmOverloads constructor(
is State.Setup -> {
delegate?.setupKeysBackup()
}
is State.Update,
is State.Recover -> {
delegate?.recoverKeysBackup()
}

View file

@ -31,10 +31,12 @@ import im.vector.riotx.core.epoxy.loadingItem
import im.vector.riotx.core.resources.StringProvider
import im.vector.riotx.core.ui.list.GenericItem
import im.vector.riotx.core.ui.list.genericItem
import im.vector.riotx.features.settings.VectorPreferences
import java.util.UUID
import javax.inject.Inject
class KeysBackupSettingsRecyclerViewController @Inject constructor(private val stringProvider: StringProvider,
private val vectorPreferences: VectorPreferences,
private val session: Session) : TypedEpoxyController<KeysBackupSettingViewState>() {
var listener: Listener? = null
@ -149,7 +151,9 @@ class KeysBackupSettingsRecyclerViewController @Inject constructor(private val s
description(keyVersionResult?.algorithm ?: "")
}
buildKeysBackupTrust(data.keysBackupVersionTrust)
if (vectorPreferences.developerMode()) {
buildKeysBackupTrust(data.keysBackupVersionTrust)
}
}
// Footer