Fix / impure reducer in action view model

This commit is contained in:
Valere
2019-06-28 14:09:26 +02:00
parent a9dd06562a
commit f83491fdfc
4 changed files with 71 additions and 61 deletions

View File

@ -152,6 +152,8 @@ data class Event(
mClaimedEd25519Key = decryptionResult.claimedEd25519Key
mForwardingCurve25519KeyChain = decryptionResult.forwardingCurve25519KeyChain
// For encrypted events with relation, the m.relates_to is kept in clear, so we need to put it back
// in the clear event
try {
content?.get("m.relates_to")?.let { clearRelates ->
mClearEvent = mClearEvent?.copy(