Apply telegram_api::updateEncryption before other updates.
GitOrigin-RevId: 1a03b2141630a0c432ca2bef92b457da08d2e1a5
This commit is contained in:
parent
20734a565b
commit
3be95dd6e8
@ -1125,8 +1125,8 @@ void UpdatesManager::after_get_difference() {
|
|||||||
retry_timeout_.cancel_timeout();
|
retry_timeout_.cancel_timeout();
|
||||||
retry_time_ = 1;
|
retry_time_ = 1;
|
||||||
|
|
||||||
process_pending_seq_updates(); // cancels seq_gap_timeout_, may apply some updates coming before getDifference, but
|
process_pending_seq_updates(); // cancels seq_gap_timeout_, may apply some updates received before getDifference,
|
||||||
// not returned in getDifference
|
// but not returned in getDifference
|
||||||
if (running_get_difference_) {
|
if (running_get_difference_) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1300,6 +1300,11 @@ void UpdatesManager::on_pending_updates(vector<tl_object_ptr<telegram_api::Updat
|
|||||||
processed_updates++;
|
processed_updates++;
|
||||||
update = nullptr;
|
update = nullptr;
|
||||||
}
|
}
|
||||||
|
if (id == telegram_api::updateEncryption::ID) {
|
||||||
|
on_update(move_tl_object_as<telegram_api::updateEncryption>(update), false);
|
||||||
|
processed_updates++;
|
||||||
|
update = nullptr;
|
||||||
|
}
|
||||||
CHECK(!running_get_difference_);
|
CHECK(!running_get_difference_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user