summary refs log tree commit diff
path: root/synapse/types.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-05-04 00:53:56 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-05-04 00:53:56 +0100
commit5c74ab406445e2dca677b65d8545aeed2a79c4ae (patch)
tree0b1f465e3a5c09619cf125983994b6a8212bd1c2 /synapse/types.py
parentMerge branch 'dinsic' into matthew/derive-mxid-from-3pid (diff)
downloadsynapse-5c74ab406445e2dca677b65d8545aeed2a79c4ae.tar.xz
fix user_id / user confusion
Diffstat (limited to 'synapse/types.py')
-rw-r--r--synapse/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/types.py b/synapse/types.py

index 46be4a071d..00e6e1c369 100644 --- a/synapse/types.py +++ b/synapse/types.py
@@ -238,7 +238,7 @@ def strip_invalid_mxid_characters(localpart): Returns: localpart (basestring): the localpart having been stripped """ - return filter(lambda c: c not in mxid_localpart_allowed_characters, localpart) + return filter(lambda c: c in mxid_localpart_allowed_characters, localpart) class StreamToken(