mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04: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;
|
continue;
|
||||||
}
|
}
|
||||||
let sticker_name = sticker_entry.file_name().into_string().unwrap_or_default();
|
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_paths.push(
|
||||||
sticker_entry
|
sticker_entry
|
||||||
.path()
|
.path()
|
||||||
|
|||||||
Reference in New Issue
Block a user