diff options
author | Erik Johnston <erik@matrix.org> | 2017-10-03 14:10:21 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-10-03 14:10:41 +0100 |
commit | e4ab96021e84ad9cccb2c3e0dea6347cce4e6149 (patch) | |
tree | b3dfcbd38cb486c9854aba9153840d1ae3420cbb /synapse/storage/roommember.py | |
parent | Remove spurious line feed (diff) | |
download | synapse-e4ab96021e84ad9cccb2c3e0dea6347cce4e6149.tar.xz |
Update comments
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r-- | synapse/storage/roommember.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index cb0791e591..63f6115ba9 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -536,6 +536,13 @@ class RoomMemberStore(SQLBaseStore): @cachedInlineCallbacks() def was_host_joined(self, room_id, host): """Check whether the server is or ever was in the room. + + Args: + room_id (str) + host (str) + + Returns: + bool: whether the host is/was in the room or not """ if '%' in host or '_' in host: raise Exception("Invalid host name") |