mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 22:46:29 +03:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user