You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
client: fix bug marking all sent events as encrypted
This commit is contained in:
@@ -941,11 +941,12 @@ MatrixClient.prototype.sendEvent = function(roomId, eventType, content, txnId,
|
||||
);
|
||||
localEvent.encryptedType = "m.room.encrypted";
|
||||
localEvent.encryptedContent = encryptedContent;
|
||||
}
|
||||
|
||||
// TODO: Specify this in the event constructor rather than fiddling
|
||||
// with the event object internals.
|
||||
localEvent.encrypted = true;
|
||||
}
|
||||
}
|
||||
|
||||
return _sendEvent(this, room, localEvent, callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user