Improve comment message.
GitOrigin-RevId: 037a91723ebf80ce0540b2872cf7470858cb2708
This commit is contained in:
parent
bcc8dbc158
commit
8dd4358ad9
@ -894,9 +894,8 @@ Status SecretChatActor::do_inbound_message_encrypted(unique_ptr<logevent::Inboun
|
|||||||
parser.fetch_end();
|
parser.fetch_end();
|
||||||
if (!parser.get_error()) {
|
if (!parser.get_error()) {
|
||||||
auto layer = message_with_layer->layer_;
|
auto layer = message_with_layer->layer_;
|
||||||
if (layer < DEFAULT_LAYER && false /*TODO: fix android app bug? */) {
|
if (layer < DEFAULT_LAYER && false /* Android app can send such messages */) {
|
||||||
LOG(ERROR) << "All or nothing, " << tag("layer", layer) << " is not supported, drop message "
|
LOG(ERROR) << "Layer " << layer << " is not supported, drop message " << to_string(message_with_layer);
|
||||||
<< to_string(message_with_layer);
|
|
||||||
return Status::OK();
|
return Status::OK();
|
||||||
}
|
}
|
||||||
if (config_state_.his_layer < layer) {
|
if (config_state_.his_layer < layer) {
|
||||||
@ -916,7 +915,7 @@ Status SecretChatActor::do_inbound_message_encrypted(unique_ptr<logevent::Inboun
|
|||||||
status = Status::Error(PSLICE() << parser.get_error() << format::as_hex_dump<4>(data_buffer.as_slice()));
|
status = Status::Error(PSLICE() << parser.get_error() << format::as_hex_dump<4>(data_buffer.as_slice()));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
status = Status::Error(PSLICE() << "Unknown constructor " << tag("ID", format::as_hex(id)));
|
status = Status::Error(PSLICE() << "Unknown constructor " << format::as_hex(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
// support for older layer
|
// support for older layer
|
||||||
|
Loading…
Reference in New Issue
Block a user