mtx::events::ephemeral::Receipt struct

Read notifications / m.receipt

These receipts are a form of acknowledgement of an event. This module defines a single acknowledgement: m.read which indicates that the user has read up to a given event.

Public types

enum ReceiptType { Read, ReadPrivate }
The type of read receipt, currently public or private.

Public variables

std::map<std::string, std::map<ReceiptType, Receipts>> receipts
The mapping of event ID to a collection of receipts for this event ID. The event ID is the ID of the event being acknowledged and not an ID for the receipt itself.

Friends

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

Enum documentation

enum mtx::events::ephemeral::Receipt::ReceiptType

The type of read receipt, currently public or private.

Enumerators
Read

A public read receipt (m.read)

ReadPrivate

A private read receipt (MSC2285)