1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-05-27 22:01:05 +03:00

Clarify operator precedence

This commit is contained in:
David Baker 2021-08-25 20:55:03 +01:00
parent d65d2b94b9
commit 81d349d993

View File

@ -248,7 +248,7 @@ export class ToDeviceChannel {
*/
async sendCompleted(type, content) {
let result;
if (type === REQUEST_TYPE || type === CANCEL_TYPE && !this.__deviceId) {
if (type === REQUEST_TYPE || (type === CANCEL_TYPE && !this.__deviceId)) {
result = await this._sendToDevices(type, content, this._devices);
} else {
result = await this._sendToDevices(type, content, [this._deviceId]);