mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-31 14:41: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}) {
|
async function loadMember({roomId, userId, storage}) {
|
||||||
const txn = await storage.readTxn([storage.storeNames.roomMembers,]);
|
const txn = await storage.readTxn([storage.storeNames.roomMembers,]);
|
||||||
const member = await txn.roomMembers.get(roomId, userId);
|
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) {
|
async function fetchMember({roomId, userId, hsApi, storage}, log) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user