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:
parent
d65d2b94b9
commit
81d349d993
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user