mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Use Main::Session in entities parsing.
This commit is contained in:
@@ -2700,7 +2700,10 @@ void History::applyDialog(
|
||||
|
||||
const auto draft = data.vdraft();
|
||||
if (draft && draft->type() == mtpc_draftMessage) {
|
||||
Data::applyPeerCloudDraft(peer->id, draft->c_draftMessage());
|
||||
Data::ApplyPeerCloudDraft(
|
||||
&session(),
|
||||
peer->id,
|
||||
draft->c_draftMessage());
|
||||
}
|
||||
owner().histories().dialogEntryApplied(this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user