Changeset View
Changeset View
Standalone View
Standalone View
src/client/room/room.hpp
| Show First 20 Lines • Show All 764 Lines • ▼ Show 20 Lines | #endif | ||||
| * Post a read receipt for this room. | * Post a read receipt for this room. | ||||
| * | * | ||||
| * @param eventId The event id the user has read up to. | * @param eventId The event id the user has read up to. | ||||
| * | * | ||||
| * @return A Promise that resolves when the read receipt is sent. | * @return A Promise that resolves when the read receipt is sent. | ||||
| */ | */ | ||||
| PromiseT postReceipt(std::string eventId) const; | PromiseT postReceipt(std::string eventId) const; | ||||
| /** | |||||
| * Get a list of event ids of unread notifications. | |||||
| * | |||||
| * @return A lager::reader of a RangeT of event ids that | |||||
| * has an unread notification. | |||||
| */ | |||||
| auto unreadNotificationEventIds() const -> lager::reader<immer::flex_vector<std::string>>; | |||||
| private: | private: | ||||
| const lager::reader<SdkModel> &sdkCursor() const; | const lager::reader<SdkModel> &sdkCursor() const; | ||||
| const lager::reader<RoomModel> &roomCursor() const; | const lager::reader<RoomModel> &roomCursor() const; | ||||
| lager::reader<RoomModel> makeRoomCursor() const; | lager::reader<RoomModel> makeRoomCursor() const; | ||||
| std::string currentRoomId() const; | std::string currentRoomId() const; | ||||
| /// if membership is invite, return inviteState; otherwise return stateEvents | /// if membership is invite, return inviteState; otherwise return stateEvents | ||||
| lager::reader<immer::map<KeyOfState, Event>> inviteStateOrState() const; | lager::reader<immer::map<KeyOfState, Event>> inviteStateOrState() const; | ||||
| /// if membership is invite and inviteState[key] exists, return inviteState[key], otherwise return stateEvents[key] | /// if membership is invite and inviteState[key] exists, return inviteState[key], otherwise return stateEvents[key] | ||||
| Show All 12 Lines | |||||