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

Move chats / contacts lists to Data::Session.

This commit is contained in:
John Preston
2019-04-16 18:05:56 +04:00
parent 2862070348
commit 0c0d6bc411
25 changed files with 441 additions and 496 deletions

View File

@@ -14,12 +14,12 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/special_buttons.h"
class DialogsInner;
class AuthSession;
namespace Dialogs {
struct RowDescriptor;
class Row;
class FakeRow;
class IndexedList;
class Key;
} // namespace Dialogs
@@ -60,7 +60,7 @@ public:
void loadDialogs();
void loadPinnedDialogs();
void createDialog(Dialogs::Key key);
void refreshDialog(Dialogs::Key key);
void removeDialog(Dialogs::Key key);
void repaintDialogRow(Dialogs::Mode list, not_null<Dialogs::Row*> row);
void repaintDialogRow(Dialogs::RowDescriptor row);
@@ -76,14 +76,8 @@ public:
void showAnimated(Window::SlideDirection direction, const Window::SectionSlideParams &params);
void showFast();
void destroyData();
void scrollToEntry(const Dialogs::RowDescriptor &entry);
Dialogs::IndexedList *contactsList();
Dialogs::IndexedList *dialogsList();
Dialogs::IndexedList *contactsNoDialogsList();
void searchMessages(const QString &query, Dialogs::Key inChat = {});
void onSearchMore();