diff --git a/presence/implementation/advertisement_decoder_rust_impl.cc b/presence/implementation/advertisement_decoder_rust_impl.cc index 415507bd..cecfe2c1 100644 --- a/presence/implementation/advertisement_decoder_rust_impl.cc +++ b/presence/implementation/advertisement_decoder_rust_impl.cc @@ -77,6 +77,11 @@ void ProcessDataElement(const nearby_protocol::V0DataElement& data_element, } case nearby_protocol::V0DataElementKind::Actions: { AddActionsToAdvertisement(data_element.AsActions(), advertisement); + return; + } + default: { + LOG(WARNING) << "Unsupported data element type: " + << (int)data_element.GetKind(); } } }