mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Update API scheme to layer 82.
This commit is contained in:
@@ -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();
|
||||
|
@@ -14,7 +14,7 @@ class InputField;
|
||||
namespace Data {
|
||||
|
||||
void applyPeerCloudDraft(PeerId peerId, const MTPDdraftMessage &draft);
|
||||
void clearPeerCloudDraft(PeerId peerId);
|
||||
void clearPeerCloudDraft(PeerId peerId, TimeId date);
|
||||
|
||||
struct Draft {
|
||||
Draft() = default;
|
||||
|
@@ -1082,7 +1082,7 @@ DocumentData *Session::documentFromWeb(
|
||||
int32(0), // data.vsize.v
|
||||
StorageImageLocation());
|
||||
result->setWebLocation(WebFileLocation(
|
||||
data.vdc_id.v,
|
||||
Global::WebFileDcId(),
|
||||
data.vurl.v,
|
||||
data.vaccess_hash.v));
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user