feat(sdk): ChatMessage.id — join a chat row to its outbox row #61
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_254f9025"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the join key the Android client (t_f8658427 / PR #59) needs to stop pairing chat rows to outbox rows positionally.
Change
ChatMessage.id: i64— first field, copied from themessages.idthe core already selects (Store::list_messages). No other field changes.chat_message(m, status)helper, soWire::messagesand the test share one path.a_chat_row_joins_to_its_outbox_row_by_message_id: realStore, one queued send, then asserts theidon theChatMessageequals themessage_idon theOutboxRowfor that same row (and that the outbox side is the stored row id, not a default).Base
Base is
feat/sdk-outbox-rows(#58, headc6a586c), notmain:OutboxRow/outbox_row()only exist there. Retarget once #58 merges.Evidence
crates/onionwire-sdk:cargo test --locked— 7 lib tests + 2 integration tests, 0 failures (RED first:cannot find function chat_message).crates/onionwire-sdk:cargo clippy --locked --all-targets -- -D warnings— clean.uniffi-bindgen generate --library libonionwire_sdk.so --language kotlinemitsdata class ChatMessage ( var id: kotlin.Long, ... )— the AAR gains one constructor field.crates/onionwire-sdk/src/lib.rsonly (+87/-5).Not here
Android follow-up (drop the positional join in
OutboxDetail.kt::outboxDetails, match onmessageId) stays with cardt_f8658427/ PR #59.109f64905f26afbc119726afbc1197758baef3e6758baef3e619f2c693f619f2c693f6938232d690938232d690c969e60185