summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2019-07-11 14:39:22 +0100
committerWill Hunt <will@half-shot.uk>2019-07-11 14:39:22 +0100
commit54546b5df89f8ae8babc8b54cfeadd5a7927cf88 (patch)
tree991a683f9c811aa06a81ee761ba4bc805fd9cd32
parentsmall typo fix (#5655) (diff)
downloadsynapse-54546b5df89f8ae8babc8b54cfeadd5a7927cf88.tar.xz
Add m.presence capability
-rw-r--r--synapse/rest/client/v2_alpha/capabilities.py4
1 files changed, 4 insertions, 0 deletions
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))