fix(qconnect): remove wrong inner envelope, decode QConnectBatch directly

Root cause: inner_payload from CloudPayload.payload IS a QConnectBatch
(QConnectMessages) with repeated QConnectMessage entries in field 3.

The QCloudInnerEnvelope struct incorrectly treated field 3 as opaque
bytes, keeping only the last repeated entry and losing all messages.
Additionally, QConnectMessages.messages_time was declared as uint64
(wire type 0/varint) but the server sends fixed64 (wire type 1),
causing a wire type mismatch that would fail decoding.

Changes:
- Remove QCloudInnerEnvelope struct entirely
- Pass inner_payload directly to decode_queue_server_events/decode_renderer_server_commands
- Fix messages_time from uint64 to fixed64 to match server wire format

Verified against qonductor proto definitions (QConnectBatch) used in
working POC v1 and v2 implementations.
This commit is contained in:
vicrodh committed 2026-02-21 17:15:34 -06:00
1 parent 975fac55f7
commit 4c7be7597d
2 files changed
+13 -41

No files matched your search

@@ -862,7 +862,7 @@ pub struct CtrlDeviceAudioQualityChangedMessage {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QConnectMessages {
#[prost(uint64, optional, tag = "1")]
#[prost(fixed64, optional, tag = "1")]
pub messages_time: Option<u64>,
#[prost(int32, optional, tag = "2")]
pub messages_id: Option<i32>,