forked from GitHub-Mirror/riotX-android
Fix / show source was showing content
This commit is contained in:
parent
a734c699ad
commit
e78b703387
@ -174,9 +174,9 @@ class MessageMenuViewModel @AssistedInject constructor(@Assisted initialState: M
|
||||
//TODO sent by me or sufficient power level
|
||||
}
|
||||
|
||||
this.add(SimpleAction(VIEW_SOURCE, R.string.view_source, R.drawable.ic_view_source, JSONObject(event.root.content.toContent()).toString(4)))
|
||||
this.add(SimpleAction(VIEW_SOURCE, R.string.view_source, R.drawable.ic_view_source, JSONObject(event.root.toContent()).toString(4)))
|
||||
if (event.isEncrypted()) {
|
||||
val decryptedContent = event.root.mClearEvent?.content?.toContent().let {
|
||||
val decryptedContent = event.root.mClearEvent.toContent()?.let {
|
||||
JSONObject(it).toString(4)
|
||||
} ?: stringProvider.getString(R.string.encryption_information_decryption_error)
|
||||
this.add(SimpleAction(VIEW_DECRYPTED_SOURCE, R.string.view_decrypted_source, R.drawable.ic_view_source, decryptedContent))
|
||||
|
Loading…
Reference in New Issue
Block a user