From 7e481080b539c664a43223f142dbaa65addefdc2 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 5 Aug 2021 16:32:06 +0530 Subject: [PATCH] Return null Signed-off-by: RMidhunSuresh --- src/matrix/room/members/load.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/members/load.js b/src/matrix/room/members/load.js index fe1b1c59..5077d793 100644 --- a/src/matrix/room/members/load.js +++ b/src/matrix/room/members/load.js @@ -104,7 +104,7 @@ export async function fetchOrLoadMember(options, logger) { async function loadMember({roomId, userId, storage}) { const txn = await storage.readTxn([storage.storeNames.roomMembers,]); const member = await txn.roomMembers.get(roomId, userId); - return member? new RoomMember(member) : undefined; + return member? new RoomMember(member) : null; } async function fetchMember({roomId, userId, hsApi, storage}, log) {