Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix presence
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jan 12, 2023
1 parent 08b9bbd commit b7d21f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synapse/handlers/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -2155,6 +2155,11 @@ def send_presence_to_destinations(
# This should only be called on a presence writer.
assert self._presence_writer

if not states or not destinations:
# Ignore calls which either don't have any new states or don't need
# to be sent anywhere.
return

if self._federation:
self._federation.send_presence_to_destinations(
states=states,
Expand Down

0 comments on commit b7d21f7

Please sign in to comment.