summary refs log tree commit diff
path: root/scripts-dev/mypy_synapse_plugin.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-10-14Remember mappings when we bind a 3pid using the internal sydent bind API (#66)Andrew Morgan3-0/+16
https://github.com/matrix-org/synapse-dinsic/pull/51 added an option that would automatically bind a user's threepid to a configured identity server after they had registered. Unfortunately, when you bind threepids, ideally you would store that mapping in the database so that later on you can remove those mappings when you deactivate an account. We found that due the fact that we did not store these mappings, threepids were not unbound upon user account deactivation. This PR fixes the issue by creating the mappings again, meaning they will again be removed upon account deactivation.
2020-10-13"Freeze" a room when the last admin of that room leaves (#59)Andrew Morgan3-4/+302
If the last admin of a room departs, and thus the room no longer has any admins within it, we "freeze" the room. Freezing a room means that the power level required to do anything in the room (sending messages, inviting others etc) will require power level 100. At the moment, an admin can come back and unfreeze the room manually. The plan is to eventually make unfreezing of the room automatic on admin rejoin, though that will be in a separate PR. This *could* work in mainline, however if the admin who leaves is on a homeserver without this functionality, then the room isn't frozen. I imagine this would probably be pretty confusing to people. Part of this feature was allowing Synapse modules to send events, which has been implemented in mainline at https://github.com/matrix-org/synapse/pull/8479, and cherry-picked to the `dinsic` fork in 62c7b10. The actual freezing logic has been implemented here in the RoomAccessRules module.
2020-10-121.21.0Andrew Morgan3-1/+13
2020-10-12Allow modules to create and send events into rooms (#8479)Andrew Morgan7-89/+299
This PR allows Synapse modules making use of the `ModuleApi` to create and send non-membership events into a room. This can useful to have modules send messages, or change power levels in a room etc. Note that they must send event through a user that's already in the room. The non-membership event limitation is currently arbitrary, as it's another chunk of work and not necessary at the moment. This commit has been cherry-picked from mainline.
2020-10-08Update change log v1.21.0rc3Erik Johnston1-1/+1
2020-10-081.21.0rc3Erik Johnston4-3/+16
2020-10-07Reduce serialization errors in MultiWriterIdGen (#8456)Erik Johnston7-5/+109
We call `_update_stream_positions_table_txn` a lot, which is an UPSERT that can conflict in `REPEATABLE READ` isolation level. Instead of doing a transaction consisting of a single query we may as well run it outside of a transaction.
2020-10-07Add Ubuntu 20.10 (Groovy Gorilla) to build scripts. (#8475)Patrick Cloke2-0/+2
2020-10-02move #8444 to 'feature' v1.21.0rc2Richard van der Hoff1-1/+5
2020-10-02linkify changelogRichard van der Hoff1-1/+1
2020-10-021.21.0rc2Richard van der Hoff1-1/+1
2020-10-021.21.0rc2Richard van der Hoff7-6/+14
2020-10-02Fix bug in remote thumbnail search (#8438)Richard van der Hoff2-20/+24
#7124 changed the behaviour of remote thumbnails so that the thumbnailing method was included in the filename of the thumbnail. To support existing files, it included a fallback so that we would check the old filename if the new filename didn't exist. Unfortunately, it didn't apply this logic to storage providers, so any thumbnails stored on such a storage provider was broken.
2020-10-02Fix DB query on startup for negative streams. (#8447)Erik Johnston2-1/+2
For negative streams we have to negate the internal stream ID before querying the DB. The effect of this bug was to query far too many rows, slowing start up time, but we would correctly filter the results afterwards so there was no ill effect.
2020-10-02Convert additional templates to Jinja (#8444)Patrick Cloke9-116/+121
This converts a few more of our inline HTML templates to Jinja. This is somewhat part of #7280 and should make it a bit easier to customize these in the future.
2020-10-02Fix malformed log line in new federation "catch up" logic (#8442)Richard van der Hoff2-1/+2
2020-10-01Do not expose the experimental appservice login flow to clients. (#8440)Patrick Cloke2-2/+1
2020-10-01update changelog v1.21.0rc1Richard van der Hoff2-2/+1
2020-10-01fix a logging error in thumbnailer (#8435)Richard van der Hoff2-1/+2
Introduced in #8236
2020-10-01changelog fixesRichard van der Hoff1-2/+1
2020-10-01fix version numberRichard van der Hoff2