You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +03:00
Merge pull request #529 from matrix-org/dbkr/event_object_reemit
Re-emit events from, er, Event objects
This commit is contained in:
@@ -3265,6 +3265,9 @@ function _resolve(callback, defer, res) {
|
||||
function _PojoToMatrixEventMapper(client) {
|
||||
function mapper(plainOldJsObject) {
|
||||
const event = new MatrixEvent(plainOldJsObject);
|
||||
reEmit(client, event, [
|
||||
"Event.decrypted",
|
||||
]);
|
||||
if (event.isEncrypted()) {
|
||||
event.attemptDecryption(client._crypto);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user