Skip to content

client-api: fix sync v5 set_presence query parameter#7

Merged
x86pup merged 1 commit into
matrix-construct:tuwunel-changesfrom
lhjt:fix/presence-param
Jun 20, 2026
Merged

client-api: fix sync v5 set_presence query parameter#7
x86pup merged 1 commit into
matrix-construct:tuwunel-changesfrom
lhjt:fix/presence-param

Conversation

@lhjt

@lhjt lhjt commented Jun 20, 2026

Copy link
Copy Markdown

Summary

Ensure set_presence parameter is read on v5 sync calls.

Context

It is possible to pass a set_presence parameter when syncing. This is especially important as the heuristics used for push notification suppression in tuwunel rely on clients reporting accurate device presence.

Tuwunel has currently been reading all v5 /sync calls from devices as having an Online presence, even if they have the set_presence parameter set.

This PR resolves the issue.

@lhjt lhjt marked this pull request as ready for review June 20, 2026 07:12
@x86pup x86pup merged commit 2f21f03 into matrix-construct:tuwunel-changes Jun 20, 2026
7 of 21 checks passed
@lhjt lhjt deleted the fix/presence-param branch June 20, 2026 15:38
@lhjt

lhjt commented Jun 20, 2026

Copy link
Copy Markdown
Author

Thanks @x86pup!

I was wondering if I should open a PR in tuwunel to update the ruma version, or what the appropriate procedure should be to get this into tuwunel? Thanks 🙂

@x86pup

x86pup commented Jun 20, 2026

Copy link
Copy Markdown
Member

A PR to bump the ruma rev would be acceptable.

@x86pup

x86pup commented Jun 20, 2026

Copy link
Copy Markdown
Member

@lhjt Bumping ruma is actually a bit more involved as we need to bump matrix-construct/synapse-admin-api ruma too.

I'm currently doing some related work with ruma, so I will handle this myself. Thank you for this fix though! ❤️

@lhjt

lhjt commented Jun 21, 2026

Copy link
Copy Markdown
Author

@x86pup yep I figured that out and had already raised the PR here: matrix-construct/synapse-admin-api#1

If you would like me to close it just lmk 🙂

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