feat: adding user report

This commit is contained in:
Chubby Granny Chaser 2024-09-14 20:55:00 +01:00
parent fcc24d6b94
commit 8799378bf2
No known key found for this signature in database
20 changed files with 463 additions and 228 deletions

View file

@ -161,6 +161,9 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("getUserFriends", userId, take, skip),
getBlockedUsers: (take: number, skip: number) =>
ipcRenderer.invoke("getBlockedUsers", take, skip),
getUserStats: (userId: string) => ipcRenderer.invoke("getUserStats", userId),
reportUser: (userId: string, reason: string, description: string) =>
ipcRenderer.invoke("reportUser", userId, reason, description),
/* Auth */
signOut: () => ipcRenderer.invoke("signOut"),