take any decryption result, as it might now have a device to verify with

This commit is contained in:
Bruno Windels 2022-11-03 17:32:01 +01:00
parent fa21ac021c
commit 6c73c31735

View File

@ -33,10 +33,11 @@ export class EventEntry extends BaseEventEntry {
} }
updateFrom(other) { updateFrom(other) {
if (other._decryptionResult && !this._decryptionResult) { // only update these when we attempted decryption, as some updates (like reactions) don't.
if (other._decryptionResult) {
this._decryptionResult = other._decryptionResult; this._decryptionResult = other._decryptionResult;
} }
if (other._decryptionError && !this._decryptionError) { if (other._decryptionError) {
this._decryptionError = other._decryptionError; this._decryptionError = other._decryptionError;
} }
this._contextForEntries = other.contextForEntries; this._contextForEntries = other.contextForEntries;