EmoteCloner: Fix recognizing animated emojis (#3027)
This commit is contained in:
parent
ac1b1d44f5
commit
f22d0e14a4
1 changed files with 2 additions and 1 deletions
|
@ -310,7 +310,8 @@ function buildMenuItem(type: "Emoji" | "Sticker", fetchData: () => Promisable<Om
|
||||||
}
|
}
|
||||||
|
|
||||||
function isGifUrl(url: string) {
|
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) => {
|
const messageContextMenuPatch: NavContextMenuPatchCallback = (children, props) => {
|
||||||
|
|
Loading…
Reference in a new issue