element-hq / element-hq/synapse

Presence filter in sync ignored

Open
#2,298 0 comments 0 reactions 0 assignees View on GitHub
A-Presence A-Spec-Compliance A-Sync O-Uncommon S-Minor T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#2298](https://github.com/matrix-org/synapse/issues/2298).

---

Hi, my initial sync with matrix.org is typically > 2 MB and I found most of the data is in presence events. According to client-server spec, I should be able to specify a Filter to limit the number of presence events https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-sync

```json
{
"presence": {
"limit": 10
}}
```
Unfortunately, this has no effect on the returned data. I also tried to use a room timeline filter and that works fine.

Being able to reduce the sync to a smaller size would be useful for mobile clients and also help reduce the load on matrix.org

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.