2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Keep track of scheduled messages.

This commit is contained in:
John Preston
2019-08-08 15:13:26 +01:00
parent 549789bfb7
commit 3814b0833d
23 changed files with 477 additions and 104 deletions

View File

@@ -8,7 +8,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history.h"
#include "history/view/history_view_element.h"
#include "history/admin_log/history_admin_log_section.h"
#include "history/history_message.h"
#include "history/history_service.h"
#include "history/history_item_components.h"
@@ -1823,13 +1822,8 @@ void History::getNextFirstUnreadMessage() {
_firstUnreadView = nullptr;
}
std::shared_ptr<AdminLog::LocalIdManager> History::adminLogIdManager() {
if (const auto strong = _adminLogIdManager.lock()) {
return strong;
}
auto result = std::make_shared<AdminLog::LocalIdManager>();
_adminLogIdManager = result;
return result;
MsgId History::nextNonHistoryEntryId() {
return ++_nonHistoryEntryId;
}
bool History::folderKnown() const {