This commit is contained in:
parent
99151c6692
commit
3676dc46ed
16 changed files with 894 additions and 89 deletions
|
|
@ -26,6 +26,7 @@ public:
|
|||
int64_t beforeTimestamp = 0);
|
||||
bool deleteMessage(const std::string& realmId, const std::string& messageId);
|
||||
void cleanupOldMessages(const std::string& realmId, int retentionHours);
|
||||
void cleanupExpiredSelfDestruct(const std::string& realmId);
|
||||
|
||||
// Settings operations
|
||||
void setGlobalSettings(const models::GlobalChatSettings& settings);
|
||||
|
|
@ -119,6 +120,10 @@ private:
|
|||
std::string getKickKey(const std::string& realmId, const std::string& userId) const {
|
||||
return "chat:kicked:" + realmId + ":" + userId;
|
||||
}
|
||||
|
||||
std::string getMessageIndexKey(const std::string& realmId) const {
|
||||
return "chat:msg_index:" + realmId;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace services
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue