fix: missing await

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 51236df4ed
commit f799f017ab

@ -62,7 +62,7 @@ module.exports = function (Messaging) {
};
Messaging.isUserInRoom = async (uid, roomId) => {
const inRoom = db.isSortedSetMember('chat:room:' + roomId + ':uids', uid);
const inRoom = await db.isSortedSetMember('chat:room:' + roomId + ':uids', uid);
const data = await plugins.fireHook('filter:messaging.isUserInRoom', { uid: uid, roomId: roomId, inRoom: inRoom });
return data.inRoom;
};

Loading…
Cancel
Save