1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Merge pull request #575 from matrix-org/dbkr/udd_no_auto_show

Supporting fixes For making UnknownDeviceDialog not pop up automatically
This commit is contained in:
David Baker
2017-12-08 16:33:18 +00:00
committed by GitHub
2 changed files with 87 additions and 41 deletions

View File

@@ -1137,6 +1137,9 @@ function _sendEvent(client, room, event, callback) {
try {
_updatePendingEventStatus(room, event, EventStatus.NOT_SENT);
event.error = err;
// also put the event object on the error: the caller will need this
// to resend or cancel the event
err.event = event;
if (callback) {
callback(err);