Skip to content

Track SMS relay device token on IMClient#32

Open
needo37 wants to merge 1 commit into
OpenBubbles:masterfrom
needo37:sms-sent-reflection
Open

Track SMS relay device token on IMClient#32
needo37 wants to merge 1 commit into
OpenBubbles:masterfrom
needo37:sms-sent-reflection

Conversation

@needo37

@needo37 needo37 commented Jun 25, 2026

Copy link
Copy Markdown

Records the push token of the SMS-relay device (the iPhone holding the SIM),
learned from the sender token of any inbound SMS-relay command (140/141/143/
144/145/146/147/149) in process_msg. Exposed as IMClient.sms_relay_token.

Persisted to a sms_relay_token file beside the IDS key cache and loaded on
startup, so it survives a restart.

Lets a non-SIM device that sends SMS over the relay target the transmit
request at the SIM device alone, instead of broadcasting it to every device.
Without this, companion devices store the relay request as an unbound message
they can't thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant