mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-28 04:48:49 -05:00
Comment
This commit is contained in:
@@ -84,12 +84,13 @@ export const useWebsocketPrivateUser = (userId: string | undefined) => {
|
||||
return privateUser
|
||||
}
|
||||
|
||||
export const isBlocked = (
|
||||
privateUser: PrivateUser | null | undefined,
|
||||
otherUserId: string
|
||||
) => {
|
||||
return (
|
||||
privateUser?.blockedUserIds.includes(otherUserId) ||
|
||||
privateUser?.blockedByUserIds.includes(otherUserId)
|
||||
)
|
||||
}
|
||||
// export const isBlocked = (
|
||||
// privateUser: PrivateUser | null | undefined,
|
||||
// otherUserId: string
|
||||
// ) => {
|
||||
// return (
|
||||
// privateUser?.blockedUserIds.includes(otherUserId) ||
|
||||
// privateUser?.blockedByUserIds.includes(otherUserId)
|
||||
// )
|
||||
// }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user