From 54546b5df89f8ae8babc8b54cfeadd5a7927cf88 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Thu, 11 Jul 2019 14:39:22 +0100 Subject: Add m.presence capability --- synapse/rest/client/v2_alpha/capabilities.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'synapse') diff --git a/synapse/rest/client/v2_alpha/capabilities.py b/synapse/rest/client/v2_alpha/capabilities.py index fc7e2f4dd5..e594bfb9bf 100644 --- a/synapse/rest/client/v2_alpha/capabilities.py +++ b/synapse/rest/client/v2_alpha/capabilities.py @@ -56,6 +56,10 @@ class CapabilitiesRestServlet(RestServlet): }, }, "m.change_password": {"enabled": change_password}, + "m.presence": { + "send_enabled": self.config.use_presence, + "receive_enabled": self.config.use_presence + }, } } defer.returnValue((200, response)) -- cgit 1.4.1