Skip to content

feat: webxdc sending contexts#8133

Closed
r10s wants to merge 1 commit intomainfrom
r10s/webxdc-sendingcontext
Closed

feat: webxdc sending contexts#8133
r10s wants to merge 1 commit intomainfrom
r10s/webxdc-sendingcontext

Conversation

@r10s
Copy link
Copy Markdown
Contributor

@r10s r10s commented Apr 16, 2026

this PR adds sending context to webxdc as discussed at webxdc/website#136

drafting was done with help of llm, this version is adapted and reviewed by hand

performance: this results in two additional database calls for each call to get_webxdc_info(), as we need to load Chat::typ, and sender's Contact::fingerprint. however, get_webxdc_info() is usually not called on each update, but only on instantiating. already before, get_webxdc_info() does quite some stuff as looking into the zip file, so these additional calls are probably fine and do not add much

@r10s r10s force-pushed the r10s/webxdc-sendingcontext branch 2 times, most recently from 81c1704 to e98e87d Compare April 18, 2026 08:56
@r10s r10s marked this pull request as draft April 18, 2026 08:56
@r10s r10s force-pushed the r10s/webxdc-sendingcontext branch 2 times, most recently from e42b492 to 99b24f3 Compare April 18, 2026 09:54
@r10s r10s marked this pull request as ready for review April 18, 2026 09:56
@r10s r10s force-pushed the r10s/webxdc-sendingcontext branch from 99b24f3 to 2ed60da Compare April 18, 2026 10:01
@r10s r10s force-pushed the r10s/webxdc-sendingcontext branch from 2ed60da to c8c33fb Compare April 18, 2026 10:03
Comment thread deltachat-ffi/deltachat.h
Comment on lines +4239 to +4240
* - can_only_send_updates_to_app_sender: true if updates sent by the local user
* will only be seen by the app sender.
Copy link
Copy Markdown
Collaborator

@Amzd Amzd Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the spec says when this is true the update sender also sees their own updates, not just the app sender

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that question pop up for me as well, see spec. we should be more explicit on that

Comment on lines +42 to +43
/// True if updates sent by the local user
/// will only be seen by the app sender.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@r10s r10s closed this Apr 18, 2026
@r10s
Copy link
Copy Markdown
Contributor Author

r10s commented Apr 18, 2026

superseded by #8138

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.

2 participants