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

Read silent flag from PeerData, not SilentToggle.

This commit is contained in:
John Preston
2017-12-08 15:52:12 +04:00
parent c79d16a0d6
commit f8963d7e4b
9 changed files with 258 additions and 150 deletions

View File

@@ -256,7 +256,6 @@ public:
not_null<History*> history;
TextWithTags textWithTags;
MsgId replyTo = 0;
bool silent = false;
WebPageId webPageId = 0;
bool clearDraft = true;
};
@@ -300,8 +299,8 @@ public:
void pushReplyReturn(HistoryItem *item);
void cancelForwarding(History *history);
void finishForwarding(History *history, bool silent); // send them
void cancelForwarding(not_null<History*> history);
void finishForwarding(not_null<History*> history);
void mediaMarkRead(not_null<DocumentData*> data);
void mediaMarkRead(const base::flat_set<not_null<HistoryItem*>> &items);