From c9a4c393edf2f7a9fca65681f06f88db4abdbeb0 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 2 Aug 2021 23:51:19 +0530 Subject: [PATCH] Return null Signed-off-by: RMidhunSuresh --- src/matrix/room/BaseRoom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/BaseRoom.js b/src/matrix/room/BaseRoom.js index 47e4b390..b24ef706 100644 --- a/src/matrix/room/BaseRoom.js +++ b/src/matrix/room/BaseRoom.js @@ -233,7 +233,7 @@ export class BaseRoom extends EventEmitter { hsApi: this._hsApi }, this._platform.logger); if (!member) { - return false; + return null; } const observableMember = new RetainedObservableValue(member, () => this._observedMembers.delete(userId)); this._observedMembers.set(userId, observableMember);