Jason Robinson
b273fc53ca
Use blake2b instead of sha256
2026-07-21 15:49:41 +03:00
Jason Robinson
8ac240ce6d
hexdigest -> digest
2026-07-21 15:36:56 +03:00
Jason Robinson
b0666bed81
Fix lazy_loaded_members_cache
...
Do a `sha256(other user + field name) -> sha256(value)` to ensure we miss the cache on values changing back/forth.
2026-07-21 15:28:09 +03:00
Jason Robinson
12d4f2d089
Fix comment re SQLite and JSON
2026-07-20 15:20:48 +03:00
Jason Robinson
c0eb2366a8
Reformat a bunch of SQL in main/profile for consistency
2026-07-20 15:19:04 +03:00
Jason Robinson
51f64823c3
Drop list copy
2026-07-20 15:05:50 +03:00
Jason Robinson
055fcac44c
Fix docstrings in ProfileUpdatesStream and ProfileUpdatesStreamRow
2026-07-20 15:00:55 +03:00
Jason Robinson
0aa4d3f376
Remove unused fields in profile replication
2026-07-20 14:57:35 +03:00
Jason Robinson
775e7011c5
No need to replicate delete_profile_upon_deactivation call anymore
2026-07-20 14:36:03 +03:00
Jason Robinson
2d8475934f
Remove get_targets_for_profile_updates
...
We now calculate the targets when persisting the updates.
2026-07-17 16:55:01 +03:00
Jason Robinson
9deebfb5b3
Remove writing to the profile updates stream in delete_profile_upon_deactivation
...
We'll anyway have "left room" actions generated for the user for everyone who is interested, as the user parter pushes them out of the room. Thus we would be doing unnecessary extra work here.
2026-07-17 16:41:31 +03:00
Jason Robinson
8b0be80303
Add a failing test for covering members of a room joined
...
The MSC indicates we should send down profiles for room members when someone joins a room, but it's a bit of a question right now on how to do this.
2026-07-17 16:40:15 +03:00
Jason Robinson
5e7475d837
Add a test covering invite/knock
2026-07-17 15:51:39 +03:00
Jason Robinson
489539fa4b
Fix up profile updates for memberhip changes
...
* Should also notify on KNOCK and INVITE (though calling them a join is a bit poor)
* Remove unnecessary fetch of user rooms as we only need to notify the members of the current room in question
2026-07-17 15:32:10 +03:00
Jason Robinson
0e840eb6a3
Merge remote-tracking branch 'origin/develop' into anoa/msc4429
2026-07-17 00:32:21 +03:00
Jason Robinson
5cb6d2caf3
Cleanup and docstring updates
2026-07-17 00:31:01 +03:00
Jason Robinson
a01fc2ef0a
Revert Event.internal_metadata changes from https://github.com/element-hq/synapse/pull/19556/changes/9b6ff35e9a53f1a6fa50c046132ba8115294c480
2026-07-17 00:12:00 +03:00
Jason Robinson
865273c524
Run linter on all files
2026-07-16 23:45:55 +03:00
Jason Robinson
cb9e1e55b9
Fix test_sync_response_always_includes_the_user_themselves
2026-07-16 23:42:22 +03:00
夜坂雅
5ed830b3b4
Change default room version to 11 (MSC4239) ( #18680 )
...
Fix #18530
Complement test changes: https://github.com/matrix-org/complement/pull/858
SyTest changes: https://github.com/matrix-org/sytest/pull/1422
2026-07-16 12:33:13 -05:00
Jason Robinson
7afa1956c3
Merge remote-tracking branch 'origin/anoa/msc4429' into anoa/msc4429
2026-07-16 16:10:01 +03:00
Jason Robinson
4bd5573d9b
Refactor persisting profile updates when persisting events
...
Instead of passing in a previous membership or a list of target users down in the event internal metadata, use the state delta (or rather, previously calculated sliding sync table changes based on state delta) to figure out if a membership really changed. Then add the member lookups to get the right users to update for.
Somewhat WIP, a few tests still fail and this commit misses a bunch of docstrings and/or cleanups of old functionality.
2026-07-16 16:09:43 +03:00
Jason Robinson and Olivier 'reivilibre'
f31d9fb983
Apply suggestions from code review
...
Co-authored-by: Olivier 'reivilibre' <olivier@librepush.net >
2026-07-15 23:13:01 +03:00
Eric Eastwood
837d687977
Merge branch 'release-v1.157' into develop
...
Conflicts:
scripts-dev/release.py
2026-07-15 12:02:47 -05:00
Eric Eastwood
d930ac615b
Update release script JSON schema find/replace to be compatible with macOS ( #19962 )
...
BSD vs GNU `sed` problems:
```shell
$ sed -i '0,/^\$id: .*/s||$id: https://element-hq.github.io/synapse/schema/synapse/v1.157/synapse-config.schema.json |' schema/synapse-config.schema.yaml
sed: 1: "schema/synapse-config.s ...": bad flag in substitute command: 'h'
```
2026-07-15 12:01:09 -05:00
Eric Eastwood
4679ed4b06
Silencing alerts is no longer necessary during a deploy (release script instructions) ( #19968 )
...
As discussed in
[`#element-backend-internal:matrix.org`](https://matrix.to/#/!SGNQGPGUwtcPBUotTL:matrix.org/$29ZzRe7gg62UZmT0bgeseMs320Kb-Ub6DyaQE20-3ng?via=jki.re&via=element.io&via=matrix.org )
Our assumptions on why this was done previously: in the olden days you'd
get paged doing the redeploy even if everything was actually fine
(probably before we started doing rolling restarts?)
2026-07-15 11:45:52 -05:00
catfromplan9
30088f38c0
Implement support for generating animated thumbnails in the media thumbnailer ( #18831 )
...
Signed-off-by: cat <cat@plan9.rocks >
2026-07-15 15:37:09 +00:00
Eric Eastwood
e1420becdd
Linkify 'Redact events of a user' docs
v1.157.0rc1
2026-07-15 09:56:19 -05:00
dependabot[bot]
0512511f87
Bump anyhow from 1.0.102 to 1.0.103 in the patches group ( #19952 )
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-15 11:25:46 +00:00
dependabot[bot]
ff4e9ec7a7
Bump the minor-and-patches group with 2 updates ( #19953 )
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-15 11:24:15 +00:00
jakobrss
243983e193
Clarified documentation for "List accounts" guests parameter ( #19963 )
2026-07-15 11:18:55 +00:00
Jason Robinson and Andrew Morgan
edc8624a64
Update synapse/config/workers.py
...
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com >
2026-07-15 13:25:43 +03:00
Jason Robinson
cbe7c81727
Remove unnecessary select from _record_profile_updates_for_user_left_room_txn
2026-07-15 11:47:52 +03:00
Jason Robinson
34ce70f6af
Lint
2026-07-15 11:43:54 +03:00
Jason Robinson and Copilot Autofix powered by AI
3824af8778
Apply suggestions from code review
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-07-15 11:42:50 +03:00
Eric Eastwood
11b48cdbad
Fix title case
2026-07-14 16:37:50 -05:00
Eric Eastwood
f8c913c1c0
Call out upgrade notes
2026-07-14 16:32:17 -05:00
Eric Eastwood
72be9b5e17
1.157.0rc1
2026-07-14 16:20:56 -05:00
Eric Eastwood
651b44e0fc
Update release script to be compatible with macOS
...
BSD vs GNU `sed` problems:
```
sed -i '0,/^\$id: .*/s||$id: https://element-hq.github.io/synapse/schema/synapse/v1.157/synapse-config.schema.json |' schema/synapse-config.schema.yaml
sed: 1: "schema/synapse-config.s ...": bad flag in substitute command: 'h'
```
2026-07-14 16:14:35 -05:00
Jason Robinson
57675ee36d
Merge remote-tracking branch 'origin/develop' into anoa/msc4429
...
# Conflicts:
# rust/src/config/mod.rs
2026-07-14 22:48:23 +03:00
Jason Robinson
9b6ff35e9a
Move persisting profile update actions for membership events into the same transaction as events
...
Before persisting the membership event to the database, collect some information for the store so that it can insert the right profile update stream rows regarding membership join and leave events.
This increases transaction safety as we write the profile update rows and the events themselves in the same transaction.
2026-07-14 22:44:06 +03:00
dependabot[bot]
1979fcca52
Bump actions/checkout from 6.0.3 to 7.0.0 ( #19921 )
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-14 11:19:15 +00:00
Andrew Morgan
6bfec47c47
Revert "Fix flaky 3PID inhibit error unit tests" ( #19916 )
2026-07-14 09:46:28 +00:00
dependabot[bot]
ff7c3b9418
Bump actions/cache from 5.0.5 to 6.1.0 ( #19920 )
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-14 09:25:28 +00:00
dependabot[bot]
60aa4466c8
Bump the minor-and-patches group with 2 updates ( #19919 )
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-14 09:25:07 +00:00
dependabot[bot]
10f6370daf
Bump bytes from 1.11.1 to 1.12.0 ( #19918 )
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-14 09:24:39 +00:00
dependabot[bot]
1b181ee813
Bump log from 0.4.32 to 0.4.33 in the patches group ( #19917 )
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-14 09:24:11 +00:00
dependabot[bot]
aafb1fabcf
Bump golang.org/x/crypto from 0.51.0 to 0.52.0 in /complement ( #19925 )
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-07-14 09:04:15 +00:00
SpiritCroc and Andrew Morgan
bf0f4f6a9d
Support MSC4446: allow moving fully read markers backwards ( #19663 )
...
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com >
2026-07-13 16:12:26 +00:00
Wessel
c93d5230c0
Honor de.sorunome.msc2409.push_ephemeral flag in appservice handler ( #19928 )
2026-07-13 16:06:17 +00:00