mtx::events::account_data::Direct struct

The direct chats for a user / m.direct.

A map of which rooms are considered ‘direct’ rooms for specific users is kept in account_data in an event of type m.direct. The content of this event is an object where the keys are the user IDs and values are lists of room ID strings of the ‘direct’ rooms for that user ID.

Public variables

std::map<std::string, std::vector<std::string>> user_to_rooms
A map of which rooms are considered ‘direct’ rooms for specific users is kept in account_data in an event of type m.direct. The content of this event is an object where the keys are the user IDs and values are lists of room ID strings of the ‘direct’ rooms for that user ID.

Friends

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