mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-02 07:31:38 +01:00
take any decryption result, as it might now have a device to verify with
This commit is contained in:
parent
fa21ac021c
commit
6c73c31735
@ -33,10 +33,11 @@ export class EventEntry extends BaseEventEntry {
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (other._decryptionError && !this._decryptionError) {
|
||||
if (other._decryptionError) {
|
||||
this._decryptionError = other._decryptionError;
|
||||
}
|
||||
this._contextForEntries = other.contextForEntries;
|
||||
|
Loading…
x
Reference in New Issue
Block a user