-
Notifications
You must be signed in to change notification settings - Fork 561
Introduce support for MSC4429: Profile Updates for Legacy Sync #19556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
632c83e
d0b616d
63cfbe7
e45045d
d9adfd8
30e8737
cfb7034
5b4d505
86572c6
3221271
f27ca70
e37a200
f95d28a
8accba6
343d4df
386958c
c02e6a6
4e820ca
7e964a9
fcbceee
2fa20e0
6ec8ee2
df1b587
e4c35ce
c30e0d9
352efe1
56a3647
632c7ea
92bfed7
4697e73
3444aef
4c2bbbc
4cf5e09
c082da4
aeeb933
54c299d
3cf7555
d254167
391fd2b
e236ddb
1ae91c8
1a59c0a
bd40add
b61f748
36f0f64
301e9c1
2d9f943
e6c25e4
28587d7
d02150f
877074f
e90096e
21d08a0
029c4d8
676ef4f
4a3fc09
ab9c917
874dc35
27417cf
daa8d7a
5819dcc
09e2125
339eee5
2dbaec3
8504386
50e788b
ddb0c52
9d58d19
d3aacee
7c728ec
05634f9
b657d2f
ea12b22
3e4301a
5f761ab
bf10187
585590b
e278dfd
8bace9f
7a60657
f453e03
b2246de
b459512
4a874c4
088f230
c12623e
1fc8d4c
b0950f9
bf3e133
60ed175
2377165
496728d
5064349
a460c28
eb5aa21
e6aec55
ecd890a
6a5adb9
45e9a01
6730ad0
28563f0
f6c1db7
180c6a2
e74046a
4271ffa
4934fca
c7f3b79
e68560a
8685137
56b7de2
182e4c2
2c7b418
6f6e633
d3dd12f
1955fbe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Add optional support for [MSC4429: Profile Updates for Legacy Sync](https://github.com/matrix-org/matrix-spec-proposals/pull/4429). | ||
| Currently defaults to not enabled, and is limited to local users only for the sync results. |
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -545,6 +545,12 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None: | |||||||||||||
| " 'allow_public_rooms_over_federation' is set." | ||||||||||||||
| ) | ||||||||||||||
|
|
||||||||||||||
| # Whether to support MSC4299 profile updates down legacy /sync | ||||||||||||||
| self.include_profile_updates_in_sync = config.get( | ||||||||||||||
| "include_profile_updates_in_sync", | ||||||||||||||
|
Comment on lines
+548
to
+550
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Separately, should this flag include the name MSC4429 in it? Once the feature is stabilised, I am not sure if we would want to keep this option permanently — I suspect not as we would just enable the stable version out of the box — but the name of the feature flag doesn't make it obvious that this is the case.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it depends if we want to use this same option for MSC4262, ie sliding sync profile updates support? I was planning on using the same configuration option for both, since they're pretty much the same thing but for a different sync engine. If that sounds ok, I'll leave without the msc in the option, if not, we can have two config options. |
||||||||||||||
| False, | ||||||||||||||
| ) | ||||||||||||||
|
|
||||||||||||||
| # Check if the legacy "restrict_public_rooms_to_local_users" flag is set. This | ||||||||||||||
| # flag is now obsolete but we need to check it for backward-compatibility. | ||||||||||||||
| if config.get("restrict_public_rooms_to_local_users", False): | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(should this be in the config manual & JSONSchema? I'm not sure either way)