anonymousland-synapse/synapse
Marek Matys 6a8643ff3d
Fixed removal of new presence stream states (#10014)
Fixes: https://github.com/matrix-org/synapse/issues/9962

This is a fix for above problem.

I fixed it by swaping the order of insertion of new records and deletion of old ones. This ensures that we don't delete fresh database records as we do deletes before inserts.

Signed-off-by: Marek Matys <themarcq@gmail.com>
2021-05-21 12:02:06 +01:00
..
_scripts Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
api Support enabling opentracing by user (#9978) 2021-05-14 10:51:08 +01:00
app Export jemalloc stats to prometheus when used (#9882) 2021-05-06 15:54:07 +01:00
appservice Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
config Remove superfluous call to bool() (#9986) 2021-05-14 10:58:57 +01:00
crypto Add Keyring.verify_events_for_server and reduce memory usage (#10018) 2021-05-20 16:25:11 +01:00
events Add missing type hints to handlers and fix a Spam Checker type hint. (#9896) 2021-04-29 07:17:28 -04:00
federation Add Keyring.verify_events_for_server and reduce memory usage (#10018) 2021-05-20 16:25:11 +01:00
groups Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
handlers Allow a user who could join a restricted room to see it in spaces summary. (#9922) 2021-05-20 11:10:36 -04:00
http Use ijson to parse the response to /send_join, reducing memory usage. (#9958) 2021-05-20 16:11:48 +01:00
logging Add debug logging for issue #9533 (#9959) 2021-05-11 11:04:03 +01:00
metrics Export jemalloc stats to prometheus when used (#9882) 2021-05-06 15:54:07 +01:00
module_api Use a database table to hold the users that should have full presence sent to them, instead of something in-memory (#9823) 2021-05-18 14:13:45 +01:00
push Split multiplart email sending into a dedicated handler (#9977) 2021-05-17 12:33:38 +02:00
replication Use a database table to hold the users that should have full presence sent to them, instead of something in-memory (#9823) 2021-05-18 14:13:45 +01:00
res/templates Port "Allow users to click account renewal links multiple times without hitting an 'Invalid Token' page #74" from synapse-dinsic (#9832) 2021-04-19 19:16:34 +01:00
rest Use a database table to hold the users that should have full presence sent to them, instead of something in-memory (#9823) 2021-05-18 14:13:45 +01:00
server_notices Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Use get_current_users_in_room from store and not StateHandler (#9910) 2021-05-05 16:49:34 +01:00
static Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
storage Fixed removal of new presence stream states (#10014) 2021-05-21 12:02:06 +01:00
streams Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
util Add a batching queue implementation. (#10017) 2021-05-21 11:20:51 +01:00
__init__.py 1.34.0 2021-05-17 11:34:39 +01:00
event_auth.py Improved validation for received requests (#9817) 2021-04-23 19:20:44 +01:00
notifier.py Add debug logging for issue #9533 (#9959) 2021-05-11 11:04:03 +01:00
python_dependencies.py Use ijson to parse the response to /send_join, reducing memory usage. (#9958) 2021-05-20 16:11:48 +01:00
server.py Split multiplart email sending into a dedicated handler (#9977) 2021-05-17 12:33:38 +02:00
types.py Make DomainSpecificString an attrs class (#9875) 2021-04-23 15:46:29 +01:00
visibility.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00