1
0
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:
Richard van der Hoff
2016-06-08 16:38:40 +01:00
parent 5ccbc0bbc6
commit 7c3104b2ae

View File

@@ -941,10 +941,11 @@ MatrixClient.prototype.sendEvent = function(roomId, eventType, content, txnId,
); );
localEvent.encryptedType = "m.room.encrypted"; localEvent.encryptedType = "m.room.encrypted";
localEvent.encryptedContent = encryptedContent; localEvent.encryptedContent = encryptedContent;
// TODO: Specify this in the event constructor rather than fiddling
// with the event object internals.
localEvent.encrypted = true;
} }
// TODO: Specify this in the event constructor rather than fiddling
// with the event object internals.
localEvent.encrypted = true;
} }
return _sendEvent(this, room, localEvent, callback); return _sendEvent(this, room, localEvent, callback);