hide reRequest behind developer mode

This commit is contained in:
Valere 2020-03-12 15:56:46 +01:00
parent 009d691d5b
commit b8a9397e73

View file

@ -297,6 +297,7 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
}
}
if (vectorPreferences.developerMode()) {
if (timelineEvent.isEncrypted() && timelineEvent.root.mCryptoError != null) {
val keysBackupService = session.cryptoService().keysBackupService()
if (keysBackupService.state == KeysBackupState.NotTrusted
@ -310,7 +311,6 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
}
}
if (vectorPreferences.developerMode()) {
add(EventSharedAction.ViewSource(timelineEvent.root.toContentStringWithIndent()))
if (timelineEvent.isEncrypted() && timelineEvent.root.mxDecryptionResult != null) {
val decryptedContent = timelineEvent.root.toClearContentStringWithIndent()