Improve ack state.

This commit is contained in:
levlam 2023-08-31 23:59:46 +03:00
parent 53b48b4ee8
commit 8b05c4f3ec

View File

@ -1079,7 +1079,7 @@ void Session::on_message_info(uint64 message_id, int32 state, uint64 answer_mess
} }
// fallthrough // fallthrough
case 4: case 4:
on_message_ack_impl(message_id, 2); on_message_ack_impl(message_id, answer_message_id == 0 ? 4 : 2);
break; break;
default: default:
LOG(ERROR) << "Invalid message info " << tag("state", state); LOG(ERROR) << "Invalid message info " << tag("state", state);