s/then/done/ to throw uncaught exceptions if the error function throws
This commit is contained in:
parent
dbff5f671e
commit
73ba55abad
1 changed files with 2 additions and 2 deletions
|
@ -163,7 +163,7 @@ function inviteUser(event, roomId, userId) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
client.invite(roomId, userId).then(function() {
|
client.invite(roomId, userId).done(function() {
|
||||||
sendResponse(event, {
|
sendResponse(event, {
|
||||||
success: true,
|
success: true,
|
||||||
});
|
});
|
||||||
|
@ -179,7 +179,7 @@ function setBotOptions(event, roomId, userId) {
|
||||||
sendError(event, "You need to be logged in.");
|
sendError(event, "You need to be logged in.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
client.sendStateEvent(roomId, "m.room.bot.options", event.data.content, userId).then(() => {
|
client.sendStateEvent(roomId, "m.room.bot.options", event.data.content, userId).done(() => {
|
||||||
sendResponse(event, {
|
sendResponse(event, {
|
||||||
success: true,
|
success: true,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue