mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Allow clearing calls log.
This commit is contained in:
@@ -2386,10 +2386,10 @@ void ApiWrap::applyUpdates(
|
||||
}
|
||||
|
||||
int ApiWrap::applyAffectedHistory(
|
||||
not_null<PeerData*> peer,
|
||||
PeerData *peer,
|
||||
const MTPmessages_AffectedHistory &result) {
|
||||
const auto &data = result.c_messages_affectedHistory();
|
||||
if (const auto channel = peer->asChannel()) {
|
||||
if (const auto channel = peer ? peer->asChannel() : nullptr) {
|
||||
channel->ptsUpdateAndApply(data.vpts().v, data.vpts_count().v);
|
||||
} else {
|
||||
updates().updateAndApply(data.vpts().v, data.vpts_count().v);
|
||||
|
Reference in New Issue
Block a user