mtx::events::state::CanonicalAlias struct

Content for the m.room.canonical_alias event.

This event is used to inform the room about which alias should be considered the canonical one. This could be for display purposes or as suggestion to users which alias to use to advertise the room.

Public variables

std::string alias
The canonical alias. Could be null.
std::vector<std::string> alt_aliases
Alternative aliases the room advertises. This list can have aliases despite the alias field being null, empty, or otherwise not present.

Friends

void from_json(const nlohmann::json& obj, CanonicalAlias& canonical_alias)
Deserialization method needed by nlohmann::json.
void to_json(nlohmann::json& obj, const CanonicalAlias& canonical_alias)
Serialization method needed by nlohmann::json.