summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-07-18 09:47:25 +0100
committerErik Johnston <erik@matrix.org>2017-07-18 09:47:25 +0100
commit6e9f147faa528c7493dbaa4e12b64baef2379d83 (patch)
tree2de4e2f8c805bb1a5b9683cc3f7c0733c422fee1
parentRemove unused tables (diff)
downloadsynapse-6e9f147faa528c7493dbaa4e12b64baef2379d83.tar.xz
Add GroupID type
-rw-r--r--synapse/types.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/types.py b/synapse/types.py
index 111948540d..b32c0e360d 100644
--- a/synapse/types.py
+++ b/synapse/types.py
@@ -156,6 +156,11 @@ class EventID(DomainSpecificString):
     SIGIL = "$"
 
 
+class GroupID(DomainSpecificString):
+    """Structure representing a group ID."""
+    SIGIL = "+"
+
+
 class StreamToken(
     namedtuple("Token", (
         "room_key",