synapse/synapse/handlers
14mRh4X0r 8942e23a69
Always update AS last_pos, even on no events (#10107)
Fixes #1834.

`get_new_events_for_appservice` internally calls `get_events_as_list`, which will filter out any rejected events. If all returned events are filtered out, `_notify_interested_services` will return without updating the last handled stream position. If there are 100 consecutive such events, processing will halt altogether.

Breaking the loop is now done by checking whether we're up-to-date with `current_max` in the loop condition, instead of relying on an empty `events` list.


Signed-off-by: Willem Mulder <14mRh4X0r@gmail.com>
2021-06-07 15:42:05 +01:00
..
ui_auth Add missing type hints to handlers and fix a Spam Checker type hint. (#9896) 2021-04-29 07:17:28 -04:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
_base.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
account_data.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
account_validity.py Split multiplart email sending into a dedicated handler (#9977) 2021-05-17 12:33:38 +02:00
acme.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
acme_issuing_service.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
admin.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
appservice.py Always update AS last_pos, even on no events (#10107) 2021-06-07 15:42:05 +01:00
auth.py Change the format of access tokens away from macaroons (#5588) 2021-05-12 15:04:51 +01:00
cas.py Rename handler and config modules which end in handler/config. (#9816) 2021-04-20 14:55:20 -04:00
deactivate_account.py 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
device.py Clear the resync bit after resyncing device lists (#9867) 2021-04-22 16:53:24 +01:00
devicemessage.py Fix m.room_key_request to-device messages (#9961) 2021-05-11 11:02:56 +01:00
directory.py Use get_current_users_in_room from store and not StateHandler (#9910) 2021-05-05 16:49:34 +01:00
e2e_keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
e2e_room_keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
event_auth.py Allow a user who could join a restricted room to see it in spaces summary. (#9922) 2021-05-20 11:10:36 -04:00
events.py Use get_current_users_in_room from store and not StateHandler (#9910) 2021-05-05 16:49:34 +01:00
federation.py Don't try and backfill the same room in parallel. (#10116) 2021-06-04 10:47:58 +01:00
groups_local.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
identity.py Add missing type hints to handlers and fix a Spam Checker type hint. (#9896) 2021-04-29 07:17:28 -04:00
initial_sync.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
message.py Run cache_joined_hosts_for_event in background (#9951) 2021-05-12 13:17:11 +01:00
oidc.py Allow OIDC cookies to work on non-root public baseurls (#9726) 2021-04-23 18:22:47 +01:00
pagination.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
password_policy.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
presence.py 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
profile.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
read_marker.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
receipts.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
register.py Change the format of access tokens away from macaroons (#5588) 2021-05-12 15:04:51 +01:00
room.py Correctly ratelimit invites when creating a room (#9968) 2021-05-12 16:05:28 +02:00
room_list.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
room_member.py Refactor checking restricted join rules (#10007) 2021-05-18 12:17:04 -04:00
room_member_worker.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
saml.py Rename handler and config modules which end in handler/config. (#9816) 2021-04-20 14:55:20 -04:00
search.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
send_email.py Split multiplart email sending into a dedicated handler (#9977) 2021-05-17 12:33:38 +02:00
set_password.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
space_summary.py Do not show invite-only rooms in spaces summary (unless joined/invited). (#10109) 2021-06-02 11:31:41 -04:00
sso.py Remove synapse.types.Collection (#9856) 2021-04-22 16:43:50 +01:00
state_deltas.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
stats.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
sync.py Delete completes to-device messages earlier in /sync (#10124) 2021-06-07 09:19:06 +01:00
typing.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
user_directory.py User directory: use calculated room membership state instead (#9821) 2021-04-16 18:17:18 +01:00