feat: get friends requests from api

This commit is contained in:
Zamitto 2024-07-10 18:52:08 -03:00
parent 6ff48605da
commit b3f87d5662
8 changed files with 54 additions and 32 deletions

View file

@ -136,6 +136,7 @@ contextBridge.exposeInMainWorld("electron", {
getMe: () => ipcRenderer.invoke("getMe"),
updateProfile: (displayName: string, newProfileImagePath: string | null) =>
ipcRenderer.invoke("updateProfile", displayName, newProfileImagePath),
getFriendRequests: () => ipcRenderer.invoke("getFriendRequests"),
/* User */
getUser: (userId: string) => ipcRenderer.invoke("getUser", userId),