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

Commit

Permalink
Incorporate review
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier committed Mar 19, 2021
1 parent 592d630 commit b6ed4f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synapse/handlers/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ async def set_state(self, target_user, state, ignore_status_msg=False):
new_fields["status_msg"] = msg

if presence == PresenceState.ONLINE or (
self._busy_presence_enabled and presence == PresenceState.BUSY
presence == PresenceState.BUSY and self._busy_presence_enabled
):
new_fields["last_active_ts"] = self.clock.time_msec()

Expand Down
2 changes: 1 addition & 1 deletion synapse/rest/client/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def on_GET(self, request):
"io.element.e2ee_forced.private": self.e2ee_forced_private,
"io.element.e2ee_forced.trusted_private": self.e2ee_forced_trusted_private,
# Supports the busy presence state described in MSC3026.
"org.matrix.msc3026.busy_presence": True,
"org.matrix.msc3026.busy_presence": self.config.experimental.msc3026_enabled,
},
},
)
Expand Down

0 comments on commit b6ed4f5

Please sign in to comment.