diff options
author | Matthew Hodgson <matthew@matrix.org> | 2018-05-04 00:53:56 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2018-05-04 00:53:56 +0100 |
commit | 5c74ab406445e2dca677b65d8545aeed2a79c4ae (patch) | |
tree | 0b1f465e3a5c09619cf125983994b6a8212bd1c2 /synapse/types.py | |
parent | Merge branch 'dinsic' into matthew/derive-mxid-from-3pid (diff) | |
download | synapse-5c74ab406445e2dca677b65d8545aeed2a79c4ae.tar.xz |
fix user_id / user confusion
Diffstat (limited to 'synapse/types.py')
-rw-r--r-- | synapse/types.py | 2 |
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( |