Skip to content

Commit

Permalink
EmoteCloner: Fix recognizing animated emojis (#3027)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadan4 authored Nov 24, 2024
1 parent ac1b1d4 commit f22d0e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/emoteCloner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ function buildMenuItem(type: "Emoji" | "Sticker", fetchData: () => Promisable<Om
}

function isGifUrl(url: string) {
return new URL(url).pathname.endsWith(".gif");
const u = new URL(url);
return u.pathname.endsWith(".gif") || u.searchParams.get("animated") === "true";
}

const messageContextMenuPatch: NavContextMenuPatchCallback = (children, props) => {
Expand Down

0 comments on commit f22d0e1

Please sign in to comment.