| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#pragma once |
| 6 |
|
| 7 |
#include <optional> |
| 8 |
|
| 9 |
#include <QDateTime> |
| 10 |
#include <QString> |
| 11 |
|
| 12 |
#include <mtx/events/collections.hpp> |
| 13 |
#include <mtx/responses/notifications.hpp> |
| 14 |
#include <mtx/responses/sync.hpp> |
| 15 |
#include <mtxclient/crypto/types.hpp> |
| 16 |
#include <mtxclient/http/errors.hpp> |
| 17 |
|
| 18 |
#include "CacheCryptoStructs.h" |
| 19 |
#include "CacheStructs.h" |
| 20 |
|
| 21 |
namespace mtx::responses { |
| 22 |
struct Messages; |
| 23 |
struct StateEvents; |
| 24 |
} |
| 25 |
|
| 26 |
namespace lmdb { |
| 27 |
class txn; |
| 28 |
class dbi; |
| 29 |
} |
| 30 |
|
| 31 |
struct CacheDb; |
| 32 |
|
| 33 |
class Cache final : public QObject |
| 34 |
{ |
| 35 |
Q_OBJECT |
| 36 |
|
| 37 |
public: |
| 38 |
Cache(const QString &userId, QObject *parent = nullptr); |
| 39 |
~Cache() noexcept; |
| 40 |
|
| 41 |
std::string displayName(const std::string &room_id, const std::string &user_id); |
| 42 |
QString displayName(const QString &room_id, const QString &user_id); |
| 43 |
QString avatarUrl(const QString &room_id, const QString &user_id); |
| 44 |
|
| 45 |
|
| 46 |
mtx::events::presence::Presence presence(const std::string &user_id); |
| 47 |
|
| 48 |
|
| 49 |
std::map<std::string, std::optional<UserKeyCache>> |
| 50 |
getMembersWithKeys(const std::string &room_id, bool verified_only); |
| 51 |
void updateUserKeys(const std::string &sync_token, const mtx::responses::QueryKeys &keyQuery); |
| 52 |
void markUserKeysOutOfDate(const std::vector<std::string> &user_ids); |
| 53 |
void markUserKeysOutOfDate(lmdb::txn &txn, |
| 54 |
lmdb::dbi &db, |
| 55 |
const std::vector<std::string> &user_ids, |
| 56 |
const std::string &sync_token); |
| 57 |
void query_keys( |
| 58 |
const std::string &user_id, |
| 59 |
std::function<void(const UserKeyCache &, const std::optional<mtx::http::ClientError> &)> cb); |
| 60 |
|
| 61 |
|
| 62 |
std::optional<UserKeyCache> userKeys(const std::string &user_id); |
| 63 |
VerificationStatus verificationStatus(const std::string &user_id); |
| 64 |
void markDeviceVerified(const std::string &user_id, const std::string &device); |
| 65 |
void markDeviceUnverified(const std::string &user_id, const std::string &device); |
| 66 |
crypto::Trust roomVerificationStatus(const std::string &room_id); |
| 67 |
|
| 68 |
std::vector<std::string> joinedRooms(); |
| 69 |
std::map<std::string, RoomInfo> getCommonRooms(const std::string &user_id); |
| 70 |
|
| 71 |
QMap<QString, RoomInfo> roomInfo(bool withInvites = true); |
| 72 |
QHash<QString, RoomInfo> invites(); |
| 73 |
std::optional<RoomInfo> invite(std::string_view roomid); |
| 74 |
QMap<QString, std::optional<RoomInfo>> spaces(); |
| 75 |
|
| 76 |
|
| 77 |
QString getRoomName(lmdb::txn &txn, lmdb::dbi &statesdb, lmdb::dbi &membersdb); |
| 78 |
|
| 79 |
mtx::events::state::JoinRule getRoomJoinRule(lmdb::txn &txn, lmdb::dbi &statesdb); |
| 80 |
bool getRoomGuestAccess(lmdb::txn &txn, lmdb::dbi &statesdb); |
| 81 |
|
| 82 |
QString getRoomTopic(lmdb::txn &txn, lmdb::dbi &statesdb); |
| 83 |
|
| 84 |
QString getRoomAvatarUrl(lmdb::txn &txn, lmdb::dbi &statesdb, lmdb::dbi &membersdb); |
| 85 |
|
| 86 |
QString getRoomVersion(lmdb::txn &txn, lmdb::dbi &statesdb); |
| 87 |
|
| 88 |
bool getRoomIsSpace(lmdb::txn &txn, lmdb::dbi &statesdb); |
| 89 |
|
| 90 |
bool getRoomIsTombstoned(lmdb::txn &txn, lmdb::dbi &statesdb); |
| 91 |
|
| 92 |
|
| 93 |
void storeEventExpirationProgress(const std::string &room, |
| 94 |
const std::string &expirationSettings, |
| 95 |
const std::string &stopMarker); |
| 96 |
std::string |
| 97 |
loadEventExpirationProgress(const std::string &room, const std::string &expirationSettings); |
| 98 |
|
| 99 |
|
| 100 |
template<typename T> |
| 101 |
std::optional<mtx::events::StateEvent<T>> |
| 102 |
getStateEvent(const std::string &room_id, std::string_view state_key = ""); |
| 103 |
template<typename T> |
| 104 |
std::vector<mtx::events::StateEvent<T>> |
| 105 |
getStateEventsWithType(const std::string &room_id, |
| 106 |
mtx::events::EventType type = mtx::events::state_content_to_type<T>); |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
std::optional<mtx::events::collections::RoomAccountDataEvents> |
| 111 |
getAccountData(mtx::events::EventType type, const std::string &room_id = ""); |
| 112 |
|
| 113 |
|
| 114 |
std::vector<RoomMember> |
| 115 |
getMembers(const std::string &room_id, std::size_t startIndex = 0, std::size_t len = 30); |
| 116 |
|
| 117 |
std::vector<RoomMember> getMembersFromInvite(const std::string &room_id, |
| 118 |
std::size_t startIndex = 0, |
| 119 |
std::size_t len = 30); |
| 120 |
size_t memberCount(const std::string &room_id); |
| 121 |
|
| 122 |
void updateState(const std::string &room, |
| 123 |
const mtx::responses::StateEvents &state, |
| 124 |
bool wipe = false); |
| 125 |
void saveState(const mtx::responses::Sync &res); |
| 126 |
bool isInitialized(); |
| 127 |
bool isDatabaseReady() { return databaseReady_ && isInitialized(); } |
| 128 |
|
| 129 |
std::string nextBatchToken(); |
| 130 |
|
| 131 |
void deleteData(); |
| 132 |
|
| 133 |
void removeInvite(lmdb::txn &txn, const std::string &room_id); |
| 134 |
void removeInvite(const std::string &room_id); |
| 135 |
void removeRoom(lmdb::txn &txn, const std::string &roomid); |
| 136 |
void removeRoom(const std::string &roomid); |
| 137 |
void setup(); |
| 138 |
|
| 139 |
cache::CacheVersion formatVersion(); |
| 140 |
void setCurrentFormat(); |
| 141 |
bool runMigrations(); |
| 142 |
|
| 143 |
std::vector<QString> roomIds(); |
| 144 |
|
| 145 |
|
| 146 |
std::vector<std::string> roomMembers(const std::string &room_id); |
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
bool hasEnoughPowerLevel(const std::vector<mtx::events::EventType> &eventTypes, |
| 151 |
const std::string &room_id, |
| 152 |
const std::string &user_id); |
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
using Receipts = std::map<std::string, std::map<std::string, uint64_t>>; |
| 159 |
void updateReadReceipt(lmdb::txn &txn, const std::string &room_id, const Receipts &receipts); |
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
using UserReceipts = std::multimap<uint64_t, std::string, std::greater<uint64_t>>; |
| 165 |
UserReceipts readReceipts(const QString &event_id, const QString &room_id); |
| 166 |
|
| 167 |
RoomInfo singleRoomInfo(const std::string &room_id); |
| 168 |
std::map<QString, RoomInfo> getRoomInfo(const std::vector<std::string> &rooms); |
| 169 |
|
| 170 |
std::vector<RoomNameAlias> roomNamesAndAliases(); |
| 171 |
|
| 172 |
void updateLastMessageTimestamp(const std::string &room_id, uint64_t ts); |
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
std::string getFullyReadEventId(const std::string &room_id); |
| 177 |
bool calculateRoomReadStatus(const std::string &room_id); |
| 178 |
void calculateRoomReadStatus(); |
| 179 |
|
| 180 |
void markSentNotification(const std::string &event_id); |
| 181 |
|
| 182 |
void removeReadNotification(const std::string &event_id); |
| 183 |
|
| 184 |
bool isNotificationSent(const std::string &event_id); |
| 185 |
|
| 186 |
std::optional<mtx::events::collections::TimelineEvents> |
| 187 |
getEvent(const std::string &room_id, std::string_view event_id); |
| 188 |
void storeEvent(const std::string &room_id, |
| 189 |
const std::string &event_id, |
| 190 |
const mtx::events::collections::TimelineEvents &event); |
| 191 |
void replaceEvent(const std::string &room_id, |
| 192 |
const std::string &event_id, |
| 193 |
const mtx::events::collections::TimelineEvents &event); |
| 194 |
std::vector<std::string> relatedEvents(const std::string &room_id, const std::string &event_id); |
| 195 |
|
| 196 |
struct TimelineRange |
| 197 |
{ |
| 198 |
uint64_t first, last; |
| 199 |
}; |
| 200 |
std::optional<TimelineRange> getTimelineRange(const std::string &room_id); |
| 201 |
std::optional<uint64_t> getTimelineIndex(const std::string &room_id, std::string_view event_id); |
| 202 |
std::optional<uint64_t> getEventIndex(const std::string &room_id, std::string_view event_id); |
| 203 |
std::optional<std::pair<uint64_t, std::string>> |
| 204 |
lastInvisibleEventAfter(const std::string &room_id, std::string_view event_id); |
| 205 |
std::optional<std::pair<uint64_t, std::string>> |
| 206 |
lastVisibleEvent(const std::string &room_id, std::string_view event_id); |
| 207 |
std::optional<std::string> getTimelineEventId(const std::string &room_id, uint64_t index); |
| 208 |
|
| 209 |
std::string previousBatchToken(const std::string &room_id); |
| 210 |
uint64_t saveOldMessages(const std::string &room_id, const mtx::responses::Messages &res); |
| 211 |
void savePendingMessage(const std::string &room_id, |
| 212 |
const mtx::events::collections::TimelineEvents &message); |
| 213 |
std::vector<std::string> pendingEvents(const std::string &room_id); |
| 214 |
std::optional<mtx::events::collections::TimelineEvents> |
| 215 |
firstPendingMessage(const std::string &room_id); |
| 216 |
void removePendingStatus(const std::string &room_id, const std::string &txn_id); |
| 217 |
|
| 218 |
|
| 219 |
void clearTimeline(const std::string &room_id); |
| 220 |
|
| 221 |
|
| 222 |
void deleteOldMessages(); |
| 223 |
void deleteOldData() noexcept; |
| 224 |
|
| 225 |
std::vector<std::string> getRoomIds(lmdb::txn &txn); |
| 226 |
std::vector<std::string> getParentRoomIds(const std::string &room_id); |
| 227 |
std::vector<std::string> getChildRoomIds(const std::string &room_id); |
| 228 |
|
| 229 |
std::vector<ImagePackInfo> |
| 230 |
getImagePacks(const std::string &room_id, std::optional<bool> stickers); |
| 231 |
|
| 232 |
|
| 233 |
void setEncryptedRoom(lmdb::txn &txn, const std::string &room_id); |
| 234 |
bool isRoomEncrypted(const std::string &room_id); |
| 235 |
std::optional<mtx::events::state::Encryption> |
| 236 |
roomEncryptionSettings(const std::string &room_id); |
| 237 |
|
| 238 |
|
| 239 |
bool isRoomMember(const std::string &user_id, const std::string &room_id); |
| 240 |
std::optional<MemberInfo> |
| 241 |
getInviteMember(const std::string &room_id, const std::string &user_id); |
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
void saveOutboundMegolmSession(const std::string &room_id, |
| 247 |
const GroupSessionData &data, |
| 248 |
mtx::crypto::OutboundGroupSessionPtr &session); |
| 249 |
OutboundGroupSessionDataRef getOutboundMegolmSession(const std::string &room_id); |
| 250 |
bool outboundMegolmSessionExists(const std::string &room_id) noexcept; |
| 251 |
void updateOutboundMegolmSession(const std::string &room_id, |
| 252 |
const GroupSessionData &data, |
| 253 |
mtx::crypto::OutboundGroupSessionPtr &session); |
| 254 |
void dropOutboundMegolmSession(const std::string &room_id); |
| 255 |
|
| 256 |
void importSessionKeys(const mtx::crypto::ExportedSessionKeys &keys); |
| 257 |
mtx::crypto::ExportedSessionKeys exportSessionKeys(); |
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
void saveInboundMegolmSession(const MegolmSessionIndex &index, |
| 263 |
mtx::crypto::InboundGroupSessionPtr session, |
| 264 |
const GroupSessionData &data); |
| 265 |
mtx::crypto::InboundGroupSessionPtr getInboundMegolmSession(const MegolmSessionIndex &index); |
| 266 |
bool inboundMegolmSessionExists(const MegolmSessionIndex &index); |
| 267 |
std::optional<GroupSessionData> getMegolmSessionData(const MegolmSessionIndex &index); |
| 268 |
|
| 269 |
|
| 270 |
|
| 271 |
|
| 272 |
void saveOlmSession(const std::string &curve25519, |
| 273 |
mtx::crypto::OlmSessionPtr session, |
| 274 |
uint64_t timestamp); |
| 275 |
void saveOlmSessions(std::vector<std::pair<std::string, mtx::crypto::OlmSessionPtr>> sessions, |
| 276 |
uint64_t timestamp); |
| 277 |
std::vector<std::string> getOlmSessions(const std::string &curve25519); |
| 278 |
std::optional<mtx::crypto::OlmSessionPtr> |
| 279 |
getOlmSession(const std::string &curve25519, const std::string &session_id); |
| 280 |
std::optional<mtx::crypto::OlmSessionPtr> getLatestOlmSession(const std::string &curve25519); |
| 281 |
|
| 282 |
void saveOlmAccount(const std::string &pickled); |
| 283 |
std::string restoreOlmAccount(); |
| 284 |
|
| 285 |
void saveBackupVersion(const OnlineBackupVersion &data); |
| 286 |
void deleteBackupVersion(); |
| 287 |
std::optional<OnlineBackupVersion> backupVersion(); |
| 288 |
|
| 289 |
void storeSecret(std::string_view name, const std::string &secret, bool internal = false); |
| 290 |
void deleteSecret(std::string_view name, bool internal = false); |
| 291 |
std::optional<std::string> secret(std::string_view name, bool internal = false); |
| 292 |
|
| 293 |
std::string pickleSecret(); |
| 294 |
|
| 295 |
template<class T> |
| 296 |
constexpr static bool isStateEvent_ = |
| 297 |
std::is_same_v<std::remove_cv_t<std::remove_reference_t<T>>, |
| 298 |
mtx::events::StateEvent<decltype(std::declval<T>().content)>>; |
| 299 |
|
| 300 |
signals: |
| 301 |
void newReadReceipts(const QString &room_id, const std::vector<QString> &event_ids); |
| 302 |
void roomReadStatus(const std::map<QString, bool> &status); |
| 303 |
void userKeysUpdate(const std::string &sync_token, const mtx::responses::QueryKeys &keyQuery); |
| 304 |
void userKeysUpdateFinalize(const std::string &user_id); |
| 305 |
void verificationStatusChanged(const std::string &userid); |
| 306 |
void selfVerificationStatusChanged(); |
| 307 |
void secretChanged(const std::string name); |
| 308 |
void databaseReady(); |
| 309 |
|
| 310 |
private: |
| 311 |
void loadSecretsFromStore( |
| 312 |
std::vector<std::pair<std::string, bool>> toLoad, |
| 313 |
std::function<void(const std::string &name, bool internal, const std::string &value)> |
| 314 |
callback, |
| 315 |
bool databaseReadyOnFinished = false); |
| 316 |
void storeSecretInStore(const std::string name, const std::string secret); |
| 317 |
void deleteSecretFromStore(const std::string name, bool internal); |
| 318 |
|
| 319 |
|
| 320 |
void saveInvite(lmdb::txn &txn, |
| 321 |
lmdb::dbi &statesdb, |
| 322 |
lmdb::dbi &membersdb, |
| 323 |
const mtx::responses::InvitedRoom &room); |
| 324 |
|
| 325 |
QString getInviteRoomName(lmdb::txn &txn, lmdb::dbi &statesdb, lmdb::dbi &membersdb); |
| 326 |
QString getInviteRoomTopic(lmdb::txn &txn, lmdb::dbi &statesdb); |
| 327 |
QString getInviteRoomAvatarUrl(lmdb::txn &txn, lmdb::dbi &statesdb, lmdb::dbi &membersdb); |
| 328 |
bool getInviteRoomIsSpace(lmdb::txn &txn, lmdb::dbi &db); |
| 329 |
|
| 330 |
std::optional<MemberInfo> getMember(const std::string &room_id, const std::string &user_id); |
| 331 |
|
| 332 |
std::string getLastEventId(lmdb::txn &txn, const std::string &room_id); |
| 333 |
void saveTimelineMessages(lmdb::txn &txn, |
| 334 |
lmdb::dbi &eventsDb, |
| 335 |
const std::string &room_id, |
| 336 |
const mtx::responses::Timeline &res); |
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
std::optional<mtx::events::collections::RoomAccountDataEvents> |
| 341 |
getAccountData(lmdb::txn &txn, mtx::events::EventType type, const std::string &room_id); |
| 342 |
bool isHiddenEvent(lmdb::txn &txn, |
| 343 |
mtx::events::collections::TimelineEvents e, |
| 344 |
const std::string &room_id); |
| 345 |
|
| 346 |
template<class T> |
| 347 |
void saveStateEvents(lmdb::txn &txn, |
| 348 |
lmdb::dbi &statesdb, |
| 349 |
lmdb::dbi &stateskeydb, |
| 350 |
lmdb::dbi &membersdb, |
| 351 |
lmdb::dbi &eventsDb, |
| 352 |
const std::string &room_id, |
| 353 |
const std::vector<T> &events); |
| 354 |
|
| 355 |
template<class T> |
| 356 |
void saveStateEvent(lmdb::txn &txn, |
| 357 |
lmdb::dbi &statesdb, |
| 358 |
lmdb::dbi &stateskeydb, |
| 359 |
lmdb::dbi &membersdb, |
| 360 |
lmdb::dbi &eventsDb, |
| 361 |
const std::string &room_id, |
| 362 |
const T &event); |
| 363 |
|
| 364 |
template<typename T> |
| 365 |
std::optional<mtx::events::StateEvent<T>> |
| 366 |
getStateEvent(lmdb::txn &txn, const std::string &room_id, std::string_view state_key = ""); |
| 367 |
|
| 368 |
template<typename T> |
| 369 |
std::vector<mtx::events::StateEvent<T>> |
| 370 |
getStateEventsWithType(lmdb::txn &txn, |
| 371 |
const std::string &room_id, |
| 372 |
mtx::events::EventType type = mtx::events::state_content_to_type<T>); |
| 373 |
|
| 374 |
void |
| 375 |
saveInvites(lmdb::txn &txn, const std::map<std::string, mtx::responses::InvitedRoom> &rooms); |
| 376 |
|
| 377 |
void savePresence( |
| 378 |
lmdb::txn &txn, |
| 379 |
const std::vector<mtx::events::Event<mtx::events::presence::Presence>> &presenceUpdates); |
| 380 |
|
| 381 |
|
| 382 |
void |
| 383 |
removeLeftRooms(lmdb::txn &txn, const std::map<std::string, mtx::responses::LeftRoom> &rooms); |
| 384 |
|
| 385 |
void updateSpaces(lmdb::txn &txn, |
| 386 |
const std::set<std::string> &spaces_with_updates, |
| 387 |
std::set<std::string> rooms_with_updates); |
| 388 |
|
| 389 |
lmdb::dbi getEventsDb(lmdb::txn &txn, const std::string &room_id); |
| 390 |
|
| 391 |
lmdb::dbi getEventOrderDb(lmdb::txn &txn, const std::string &room_id); |
| 392 |
|
| 393 |
|
| 394 |
lmdb::dbi getEventToOrderDb(lmdb::txn &txn, const std::string &room_id); |
| 395 |
|
| 396 |
lmdb::dbi getMessageToOrderDb(lmdb::txn &txn, const std::string &room_id); |
| 397 |
|
| 398 |
lmdb::dbi getOrderToMessageDb(lmdb::txn &txn, const std::string &room_id); |
| 399 |
|
| 400 |
lmdb::dbi getPendingMessagesDb(lmdb::txn &txn, const std::string &room_id); |
| 401 |
|
| 402 |
lmdb::dbi getRelationsDb(lmdb::txn &txn, const std::string &room_id); |
| 403 |
|
| 404 |
lmdb::dbi getInviteStatesDb(lmdb::txn &txn, const std::string &room_id); |
| 405 |
|
| 406 |
lmdb::dbi getInviteMembersDb(lmdb::txn &txn, const std::string &room_id); |
| 407 |
|
| 408 |
lmdb::dbi getStatesDb(lmdb::txn &txn, const std::string &room_id); |
| 409 |
|
| 410 |
lmdb::dbi getStatesKeyDb(lmdb::txn &txn, const std::string &room_id); |
| 411 |
|
| 412 |
lmdb::dbi getAccountDataDb(lmdb::txn &txn, const std::string &room_id); |
| 413 |
|
| 414 |
lmdb::dbi getMembersDb(lmdb::txn &txn, const std::string &room_id); |
| 415 |
|
| 416 |
lmdb::dbi getUserKeysDb(lmdb::txn &txn); |
| 417 |
|
| 418 |
lmdb::dbi getVerificationDb(lmdb::txn &txn); |
| 419 |
|
| 420 |
QString getDisplayName(const mtx::events::StateEvent<mtx::events::state::Member> &event); |
| 421 |
|
| 422 |
std::optional<VerificationCache> verificationCache(const std::string &user_id, lmdb::txn &txn); |
| 423 |
VerificationStatus verificationStatus_(const std::string &user_id, lmdb::txn &txn); |
| 424 |
std::optional<UserKeyCache> userKeys_(const std::string &user_id, lmdb::txn &txn); |
| 425 |
|
| 426 |
void setNextBatchToken(lmdb::txn &txn, const std::string &token); |
| 427 |
|
| 428 |
QString localUserId_; |
| 429 |
QString cacheDirectory_; |
| 430 |
|
| 431 |
std::string pickle_secret_; |
| 432 |
|
| 433 |
VerificationStorage verification_storage; |
| 434 |
|
| 435 |
bool databaseReady_ = false; |
| 436 |
|
| 437 |
std::unique_ptr<CacheDb> db; |
| 438 |
}; |
| 439 |
|
| 440 |
namespace cache { |
| 441 |
Cache * |
| 442 |
client(); |
| 443 |
} |
| 444 |
|
| 445 |
#define NHEKO_CACHE_GET_STATE_EVENT_FORWARD(Content) \ |
| 446 |
extern template std::optional<mtx::events::StateEvent<Content>> Cache::getStateEvent<Content>( \ |
| 447 |
const std::string &room_id, std::string_view state_key); \ |
| 448 |
\ |
| 449 |
extern template std::vector<mtx::events::StateEvent<Content>> \ |
| 450 |
Cache::getStateEventsWithType<Content>(const std::string &room_id, \ |
| 451 |
mtx::events::EventType type); |
| 452 |
|
| 453 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::Aliases) |
| 454 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::Avatar) |
| 455 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::CanonicalAlias) |
| 456 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::Create) |
| 457 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::Encryption) |
| 458 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::GuestAccess) |
| 459 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::HistoryVisibility) |
| 460 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::JoinRules) |
| 461 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::Member) |
| 462 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::Name) |
| 463 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::PinnedEvents) |
| 464 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::PowerLevels) |
| 465 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::Tombstone) |
| 466 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::ServerAcl) |
| 467 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::Topic) |
| 468 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::Widget) |
| 469 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::policy_rule::UserRule) |
| 470 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::policy_rule::RoomRule) |
| 471 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::policy_rule::ServerRule) |
| 472 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::space::Child) |
| 473 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::state::space::Parent) |
| 474 |
NHEKO_CACHE_GET_STATE_EVENT_FORWARD(mtx::events::msc2545::ImagePack) |