#include <room-model.hpp>
|
using | Membership = RoomMembership |
|
using | ReverseEventRelationshipMap = immer::map< std::string, immer::map< std::string, immer::flex_vector< std::string > >> |
|
using | Action = std::variant< AddStateEventsAction, MaybeAddStateEventsAction, AddToTimelineAction, AddAccountDataAction, ChangeMembershipAction, ChangeInviteStateAction, AddEphemeralAction, SetLocalDraftAction, SetRoomEncryptionAction, MarkMembersFullyLoadedAction, SetHeroIdsAction, AddLocalEchoAction, RemoveLocalEchoAction, AddPendingRoomKeyAction, RemovePendingRoomKeyAction, UpdateJoinedMemberCountAction, UpdateInvitedMemberCountAction, AddLocalNotificationsAction, RemoveReadLocalNotificationsAction > |
|
◆ Action
using Kazv::RoomModel::Action = std::variant< AddStateEventsAction, MaybeAddStateEventsAction, AddToTimelineAction, AddAccountDataAction, ChangeMembershipAction, ChangeInviteStateAction, AddEphemeralAction, SetLocalDraftAction, SetRoomEncryptionAction, MarkMembersFullyLoadedAction, SetHeroIdsAction, AddLocalEchoAction, RemoveLocalEchoAction, AddPendingRoomKeyAction, RemovePendingRoomKeyAction, UpdateJoinedMemberCountAction, UpdateInvitedMemberCountAction, AddLocalNotificationsAction, RemoveReadLocalNotificationsAction > |
◆ Membership
◆ ReverseEventRelationshipMap
◆ addToUndecryptedEvents()
void Kazv::RoomModel::addToUndecryptedEvents |
( |
EventList |
newEvents | ) |
|
Fill in undecryptedEvents by gathering the session ids specified in newEvents
.
- Parameters
-
newEvents | New incoming events. |
◆ bannedMemberEvents()
EventList Kazv::RoomModel::bannedMemberEvents |
( |
| ) |
const |
◆ bannedMemberIds()
immer::flex_vector< std::string > Kazv::RoomModel::bannedMemberIds |
( |
| ) |
const |
◆ generateRelationships()
void Kazv::RoomModel::generateRelationships |
( |
EventList |
newEvents | ) |
|
Fill in reverseEventRelationships by gathering the relationships specified in newEvents
- Parameters
-
newEvents | The events that just came in after last time event relationships are gathered. |
◆ getLocalEchoByTxnId()
std::optional< LocalEchoDesc > Kazv::RoomModel::getLocalEchoByTxnId |
( |
std::string |
txnId | ) |
const |
◆ getPendingRoomKeyEventByTxnId()
std::optional< PendingRoomKeyEvent > Kazv::RoomModel::getPendingRoomKeyEventByTxnId |
( |
std::string |
txnId | ) |
const |
◆ hasUser()
bool Kazv::RoomModel::hasUser |
( |
std::string |
userId | ) |
const |
◆ heroMemberEvents()
EventList Kazv::RoomModel::heroMemberEvents |
( |
| ) |
const |
◆ invitedMemberEvents()
EventList Kazv::RoomModel::invitedMemberEvents |
( |
| ) |
const |
◆ invitedMemberIds()
immer::flex_vector< std::string > Kazv::RoomModel::invitedMemberIds |
( |
| ) |
const |
◆ joinedMemberEvents()
EventList Kazv::RoomModel::joinedMemberEvents |
( |
| ) |
const |
◆ joinedMemberIds()
immer::flex_vector< std::string > Kazv::RoomModel::joinedMemberIds |
( |
| ) |
const |
◆ knockedMemberEvents()
EventList Kazv::RoomModel::knockedMemberEvents |
( |
| ) |
const |
◆ knockedMemberIds()
immer::flex_vector< std::string > Kazv::RoomModel::knockedMemberIds |
( |
| ) |
const |
◆ leftMemberEvents()
EventList Kazv::RoomModel::leftMemberEvents |
( |
| ) |
const |
◆ leftMemberIds()
immer::flex_vector< std::string > Kazv::RoomModel::leftMemberIds |
( |
| ) |
const |
◆ makeAddTagEvent()
Event Kazv::RoomModel::makeAddTagEvent |
( |
std::string |
tagId, |
|
|
std::optional< double > |
order |
|
) |
| const |
◆ makeRemoveTagEvent()
Event Kazv::RoomModel::makeRemoveTagEvent |
( |
std::string |
tagId | ) |
const |
◆ recalculateUndecryptedEvents()
void Kazv::RoomModel::recalculateUndecryptedEvents |
( |
| ) |
|
◆ regenerateRelationships()
void Kazv::RoomModel::regenerateRelationships |
( |
| ) |
|
◆ sessionRotateDesc()
◆ tags()
immer::map< std::string, double > Kazv::RoomModel::tags |
( |
| ) |
const |
◆ update()
◆ accountData
immer::map<std::string, Event> Kazv::RoomModel::accountData |
◆ canPaginateBack
bool Kazv::RoomModel::canPaginateBack {true} |
whether this room has earlier events to be fetched
◆ encrypted
bool Kazv::RoomModel::encrypted {false} |
◆ ephemeral
immer::map<std::string, Event> Kazv::RoomModel::ephemeral |
◆ eventReadUsers
immer::map< std::string , immer::flex_vector<std::string > > Kazv::RoomModel::eventReadUsers |
A map from event id to a list of users that has read receipt at that point.
◆ heroIds
immer::flex_vector<std::string> Kazv::RoomModel::heroIds |
◆ invitedMemberCount
std::size_t Kazv::RoomModel::invitedMemberCount {0} |
◆ inviteState
◆ joinedMemberCount
std::size_t Kazv::RoomModel::joinedMemberCount {0} |
◆ localDraft
std::string Kazv::RoomModel::localDraft |
◆ localEchoes
◆ localNotificationCount
std::size_t Kazv::RoomModel::localNotificationCount {0} |
The local unread notification count for this room.
XXX this is never used.
◆ localReadMarker
std::string Kazv::RoomModel::localReadMarker |
The local read marker for this room.
Indicates that you have read up to this event.
◆ localUnreadCount
std::size_t Kazv::RoomModel::localUnreadCount {0} |
The local unread count for this room.
◆ membersFullyLoaded
bool Kazv::RoomModel::membersFullyLoaded {false} |
◆ membership
◆ messages
immer::map<std::string, Event> Kazv::RoomModel::messages |
◆ paginateBackToken
std::string Kazv::RoomModel::paginateBackToken |
◆ pendingRoomKeyEvents
◆ readReceipts
immer::map<std::string , ReadReceipt> Kazv::RoomModel::readReceipts |
Read receipts for all users.
◆ reverseEventRelationships
◆ roomId
std::string Kazv::RoomModel::roomId |
◆ shouldRotateSessionKey
bool Kazv::RoomModel::shouldRotateSessionKey {true} |
a marker to indicate whether we need to rotate the session key earlier than it expires (e.g.
when a user in the room's device list changed or when someone joins or leaves)
◆ stateEvents
◆ timeline
immer::flex_vector<std::string> Kazv::RoomModel::timeline |
◆ timelineGaps
immer::map<std::string , std::string > Kazv::RoomModel::timelineGaps |
◆ undecryptedEvents
immer::map< std::string , immer::flex_vector<std::string > > Kazv::RoomModel::undecryptedEvents |
A map from the session id to a list of event ids of events that cannot (yet) be decrypted.
◆ unreadNotificationEventIds
immer::flex_vector<std::string> Kazv::RoomModel::unreadNotificationEventIds |
The documentation for this struct was generated from the following files: