mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Move chats / contacts lists to Data::Session.
This commit is contained in:
@@ -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 ¶ms);
|
||||
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();
|
||||
|
||||
|
Reference in New Issue
Block a user