feat: adding image processing

This commit is contained in:
Chubby Granny Chaser 2024-09-14 00:09:34 +01:00
commit 6e543fecb4
No known key found for this signature in database
18 changed files with 165 additions and 77 deletions

View file

@ -145,6 +145,8 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("undoFriendship", userId),
updateProfile: (updateProfile: UpdateProfileRequest) =>
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),