mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-19 00:31:39 +01:00
Return null
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
c9a4c393ed
commit
7e481080b5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user