Add support to gif stickers (#7941)

Minimal change lets the desktop client select gif files placed in the
stickers folders.
This commit is contained in:
Francisco Castro
2026-03-03 08:28:52 -03:00
committed by GitHub
parent b94792706a
commit b10acd194e

View File

@@ -2506,7 +2506,10 @@ impl CommandApi {
continue;
}
let sticker_name = sticker_entry.file_name().into_string().unwrap_or_default();
if sticker_name.ends_with(".png") || sticker_name.ends_with(".webp") {
if sticker_name.ends_with(".png")
|| sticker_name.ends_with(".webp")
|| sticker_name.ends_with(".gif")
{
sticker_paths.push(
sticker_entry
.path()