feat: sending friend request

This commit is contained in:
Zamitto 2024-07-10 21:04:45 -03:00
parent ef0699dbea
commit a81b016500
8 changed files with 78 additions and 22 deletions

View file

@ -140,6 +140,8 @@ contextBridge.exposeInMainWorld("electron", {
getFriendRequests: () => ipcRenderer.invoke("getFriendRequests"),
updateFriendRequest: (userId: string, action: FriendRequestAction) =>
ipcRenderer.invoke("updateFriendRequest", userId, action),
sendFriendRequest: (userId: string) =>
ipcRenderer.invoke("sendFriendRequest", userId),
/* User */
getUser: (userId: string) => ipcRenderer.invoke("getUser", userId),