Fix error handling in process_join_group_call_presentation_response.

This commit is contained in:
levlam 2021-05-02 02:47:34 +03:00
parent 8485867fe0
commit 84b96be914

View File

@ -2641,6 +2641,11 @@ void GroupCallManager::process_join_group_call_presentation_response(InputGroupC
auto promise = std::move(it->second->promise); auto promise = std::move(it->second->promise);
pending_join_presentation_requests_.erase(it); pending_join_presentation_requests_.erase(it);
if (status.is_error()) {
return promise.set_error(std::move(status));
}
CHECK(updates != nullptr);
string params = UpdatesManager::extract_join_group_call_presentation_params(updates.get()); string params = UpdatesManager::extract_join_group_call_presentation_params(updates.get());
if (params.empty()) { if (params.empty()) {
return promise.set_error( return promise.set_error(