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

Load dialogs list in ApiWrap and Data::Session.

This commit is contained in:
John Preston
2019-04-16 20:28:41 +04:00
parent 927735dff2
commit 305a611211
10 changed files with 311 additions and 247 deletions

View File

@@ -293,6 +293,12 @@ public:
void applyUpdate(const MTPDupdateChatParticipantAdmin &update);
void applyUpdate(const MTPDupdateChatDefaultBannedRights &update);
void applyDialogs(
const QVector<MTPMessage> &messages,
const QVector<MTPDialog> &dialogs);
void addSavedPeersAfter(const QDateTime &date);
void addAllSavedPeers();
int pinnedDialogsCount() const;
const std::deque<Dialogs::Key> &pinnedDialogsOrder() const;
void setPinnedDialog(const Dialogs::Key &key, bool pinned);
@@ -597,6 +603,9 @@ private:
int entriesFull,
int entriesMuted) const;
void applyDialog(const MTPDdialog &data);
void applyDialog(const MTPDdialogFolder &data);
void photoApplyFields(
not_null<PhotoData*> photo,
const MTPPhoto &data);