feat: implement undo friendship

This commit is contained in:
Zamitto 2024-07-25 23:03:11 -03:00
parent edf920fed3
commit 00c46bc981
6 changed files with 25 additions and 2 deletions

View file

@ -135,6 +135,8 @@ contextBridge.exposeInMainWorld("electron", {
/* Profile */
getMe: () => ipcRenderer.invoke("getMe"),
undoFriendship: (userId: string) =>
ipcRenderer.invoke("undoFriendship", userId),
updateProfile: (displayName: string, newProfileImagePath: string | null) =>
ipcRenderer.invoke("updateProfile", displayName, newProfileImagePath),
getFriendRequests: () => ipcRenderer.invoke("getFriendRequests"),