Update API scheme to layer 82.

This commit is contained in:
John Preston
2018-06-26 14:58:29 +01:00
parent 941288b58e
commit ff53404d5b
20 changed files with 129 additions and 50 deletions
+5 -2
View File
@@ -68,8 +68,11 @@ void applyPeerCloudDraft(PeerId peerId, const MTPDdraftMessage &draft) {
}
}
void clearPeerCloudDraft(PeerId peerId) {
auto history = App::history(peerId);
void clearPeerCloudDraft(PeerId peerId, TimeId date) {
const auto history = App::history(peerId);
if (history->skipCloudDraft(QString(), date)) {
return;
}
history->clearCloudDraft();
history->clearLocalDraft();