Return null

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-05 16:32:06 +05:30
parent c9a4c393ed
commit 7e481080b5

View file

@ -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) {