feat: process profile image

This commit is contained in:
Zamitto 2024-09-13 16:33:27 -03:00
parent a295003ad4
commit 797a09f583
12 changed files with 207 additions and 104 deletions

View file

@ -141,6 +141,8 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("undoFriendship", userId),
updateProfile: (updateProfile: UpdateProfileProps) =>
ipcRenderer.invoke("updateProfile", updateProfile),
processProfileImage: (imagePath: string) =>
ipcRenderer.invoke("processProfileImage", imagePath),
getFriendRequests: () => ipcRenderer.invoke("getFriendRequests"),
updateFriendRequest: (userId: string, action: FriendRequestAction) =>
ipcRenderer.invoke("updateFriendRequest", userId, action),