diff options
Diffstat (limited to 'td/telegram/net/Session.cpp')
| -rw-r--r-- | td/telegram/net/Session.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/td/telegram/net/Session.cpp b/td/telegram/net/Session.cpp index 93c7088c8..092bf66bf 100644 --- a/td/telegram/net/Session.cpp +++ b/td/telegram/net/Session.cpp @@ -702,7 +702,7 @@ void Session::on_session_created(uint64 unique_id, uint64 first_message_id) { if (is_main_) { LOG(DEBUG) << "Sending updatesTooLong to force getDifference"; BufferSlice packet(4); - as<int32>(packet.as_slice().begin()) = telegram_api::updatesTooLong::ID; + as<int32>(packet.as_mutable_slice().begin()) = telegram_api::updatesTooLong::ID; last_activity_timestamp_ = Time::now(); callback_->on_update(std::move(packet), auth_data_.get_auth_key().id()); } |
