getting and showing user nice

This commit is contained in:
talksik
2022-05-28 17:09:08 -05:00
parent 7ae7d7fa36
commit 5528a39439
2 changed files with 293 additions and 209 deletions
+2 -5
View File
@@ -128,11 +128,8 @@ export const getUserById = async (userId: string): Promise<User | undefined> =>
};
// get the conversations for particular user
export const useGetConversationsQueryLIVE = () => {
const { user } = useAuth();
return query(db.conversations, where('membersList', 'array-contains', user.uid));
};
export const getConversationsQueryLIVE = (userId: string) =>
query(db.conversations, where('membersList', 'array-contains', userId));
/**
*