2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Init webm player for sticker set thumbnails.

This commit is contained in:
John Preston
2022-01-24 15:33:31 +03:00
parent 10ff71e8f6
commit 20dbf18106
13 changed files with 251 additions and 117 deletions

View File

@@ -14,7 +14,7 @@ class FileLoader;
namespace Media {
namespace Clip {
enum Notification : int;
enum class Notification;
class ReaderPointer;
} // namespace Clip
} // namespace Media

View File

@@ -49,7 +49,8 @@ StickersSetFlags ParseStickersSetFlags(const MTPDstickerSet &data) {
return (data.is_archived() ? Flag::Archived : Flag())
| (data.is_official() ? Flag::Official : Flag())
| (data.is_masks() ? Flag::Masks : Flag())
| (data.vinstalled_date() ? Flag::Installed : Flag());
| (data.vinstalled_date() ? Flag::Installed : Flag())
| (data.is_gifs() ? Flag::Webm : Flag());
}
StickersSet::StickersSet(

View File

@@ -54,6 +54,7 @@ enum class StickersSetFlag {
Featured = (1 << 5),
Unread = (1 << 6),
Special = (1 << 7),
Webm = (1 << 8),
};
inline constexpr bool is_flag_type(StickersSetFlag) { return true; };
using StickersSetFlags = base::flags<StickersSetFlag>;