Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/packages/socket/src/hooks/registerServerSocketEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,14 @@ export function registerServerSocketEvents(socket: Socket, host: string, ctx: Se
}));
});

/* The worker could not process an avatar or banner this person uploaded, so they keep
the old one (GRYT-1667). Asking for the profile again puts it back in settings. */
socket.on("profile:media-refused", (data: { purpose?: unknown }) => {
const what = data?.purpose === "banner" ? "banner" : "avatar";
toast.error(`That ${what} couldn't be processed, so you still have your old one. Try a different file.`);
socket.emit("avatar:updated");
});

socket.on(
"server:setup_required",
(payload: {
Expand Down
Loading