mtx::events::msc2545::PackImage struct

A single image in a pack.

Public functions

auto overrides_usage() const -> bool
If this overrides the pack level usage definition.
auto is_emoji() const -> bool
If this can be used as an emoji/emojicon.
auto is_sticker() const -> bool
If this can be used as a sticker.

Public variables

std::string url
The mxc uri of this image.
std::string body
The body to be sent in a sticker. May be empty.
std::optional<mtx::common::ImageInfo> info
Info as used in stickers about size, etc.
std::bitset<2> usage
What the images are used for. Indexed by PackUsage.