2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Display active feed state in dialogs list.

This commit is contained in:
John Preston
2018-01-22 19:42:25 +03:00
parent 840b42934b
commit 47ad5ea98a
29 changed files with 381 additions and 250 deletions

View File

@@ -8,6 +8,7 @@ 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_media_types.h"
#include "history/history_service.h"
@@ -1924,6 +1925,15 @@ 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;
}
QDateTime History::adjustChatListDate() const {
const auto result = chatsListDate();
if (const auto draft = cloudDraft()) {