summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-09-20 11:12:11 +0100
committerErik Johnston <erik@matrix.org>2017-09-20 11:12:11 +0100
commit197d82dc070447b4a89a82816996f38f01ca7a04 (patch)
tree56416577e1296e684dd4831c67fd6791116b801c /synapse
parentFix initial sync (diff)
downloadsynapse-197d82dc070447b4a89a82816996f38f01ca7a04.tar.xz
Correctly return next token
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/group_server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/group_server.py b/synapse/storage/group_server.py
index b0399f8133..2afd689d83 100644
--- a/synapse/storage/group_server.py
+++ b/synapse/storage/group_server.py
@@ -966,10 +966,11 @@ class GroupServerStore(SQLBaseStore):
             return next_id
 
         with self._group_updates_id_gen.get_next() as next_id:
-            yield self.runInteraction(
+            res = yield self.runInteraction(
                 "register_user_group_membership",
                 _register_user_group_membership_txn, next_id,
             )
+        defer.returnValue(res)
 
     @defer.inlineCallbacks
     def create_group(self, group_id, user_id, name, avatar_url, short_description,