mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-27 18:20:50 -04:00
Merge remote-tracking branch 'upstream/release-v1.26.0'
This commit is contained in:
commit
d3547df958
183 changed files with 8528 additions and 2668 deletions
|
@ -203,14 +203,18 @@ class BulkPushRuleEvaluator:
|
|||
|
||||
condition_cache = {} # type: Dict[str, bool]
|
||||
|
||||
# If the event is not a state event check if any users ignore the sender.
|
||||
if not event.is_state():
|
||||
ignorers = await self.store.ignored_by(event.sender)
|
||||
else:
|
||||
ignorers = set()
|
||||
|
||||
for uid, rules in rules_by_user.items():
|
||||
if event.sender == uid:
|
||||
continue
|
||||
|
||||
if not event.is_state():
|
||||
is_ignored = await self.store.is_ignored_by(event.sender, uid)
|
||||
if is_ignored:
|
||||
continue
|
||||
if uid in ignorers:
|
||||
continue
|
||||
|
||||
display_name = None
|
||||
profile_info = room_members.get(uid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue