This commit is contained in:
MartinBraquet
2025-10-29 17:51:22 +01:00
parent ee41aaa112
commit 2e6aec175a

View File

@@ -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)
// )
// }