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 - Message transitions in encrypted rooms are jarring #518
- Images that failed to send are waiting to be sent forever #1145 - 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 / Crashed when trying to send a gif from the Gboard #1136
- Fix / Cannot click on key backup banner when new keys are available
Translations 🗣: Translations 🗣:
- -

View file

@ -123,6 +123,7 @@ class KeysBackupBanner @JvmOverloads constructor(
is State.Setup -> { is State.Setup -> {
delegate?.setupKeysBackup() delegate?.setupKeysBackup()
} }
is State.Update,
is State.Recover -> { is State.Recover -> {
delegate?.recoverKeysBackup() 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.resources.StringProvider
import im.vector.riotx.core.ui.list.GenericItem import im.vector.riotx.core.ui.list.GenericItem
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 java.util.UUID
import javax.inject.Inject import javax.inject.Inject
class KeysBackupSettingsRecyclerViewController @Inject constructor(private val stringProvider: StringProvider, class KeysBackupSettingsRecyclerViewController @Inject constructor(private val stringProvider: StringProvider,
private val vectorPreferences: VectorPreferences,
private val session: Session) : TypedEpoxyController<KeysBackupSettingViewState>() { private val session: Session) : TypedEpoxyController<KeysBackupSettingViewState>() {
var listener: Listener? = null var listener: Listener? = null
@ -149,8 +151,10 @@ class KeysBackupSettingsRecyclerViewController @Inject constructor(private val s
description(keyVersionResult?.algorithm ?: "") description(keyVersionResult?.algorithm ?: "")
} }
if (vectorPreferences.developerMode()) {
buildKeysBackupTrust(data.keysBackupVersionTrust) buildKeysBackupTrust(data.keysBackupVersionTrust)
} }
}
// Footer // Footer
keysBackupSettingFooterItem { keysBackupSettingFooterItem {