summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorSorunome <mail@sorunome.de>2020-01-18 21:53:35 +0100
committerSorunome <mail@sorunome.de>2020-01-18 21:53:35 +0100
commit16801e2b5ce7d99c2fd157c1228fbbfbad55b668 (patch)
tree8973ffe2fab82b9e2f7a98e8d2020d6d6420d8b2 /synapse/handlers/message.py
parentAdd more logging around message retention policies support (#6717) (diff)
downloadsynapse-16801e2b5ce7d99c2fd157c1228fbbfbad55b668.tar.xz
implement knock via non-federation
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 8ea3aca2f4..91c582725c 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -2,6 +2,7 @@
 # Copyright 2014-2016 OpenMarket Ltd
 # Copyright 2017-2018 New Vector Ltd
 # Copyright 2019 The Matrix.org Foundation C.I.C.
+# Copyrignt 2020 Sorunome
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -471,7 +472,7 @@ class EventCreationHandler(object):
             membership = builder.content.get("membership", None)
             target = UserID.from_string(builder.state_key)
 
-            if membership in {Membership.JOIN, Membership.INVITE}:
+            if membership in {Membership.JOIN, Membership.INVITE, Membership.KNOCK}:
                 # If event doesn't include a display name, add one.
                 profile = self.profile_handler
                 content = builder.content