summary refs log tree commit diff
path: root/synapse/groups/attestations.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-10-27 09:58:13 +0100
committerErik Johnston <erik@matrix.org>2017-10-27 09:58:13 +0100
commit195abfe7a5ec3b0d52812a3d7a04264f97376771 (patch)
treed519fda77a66948f8553b09539297ef8357df367 /synapse/groups/attestations.py
parentLog if we try to do attestations for our own user and group (diff)
downloadsynapse-195abfe7a5ec3b0d52812a3d7a04264f97376771.tar.xz
Remove incorrect attestations
Diffstat (limited to 'synapse/groups/attestations.py')
-rw-r--r--synapse/groups/attestations.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/groups/attestations.py b/synapse/groups/attestations.py
index 2e252b66a7..0bd73b6a61 100644
--- a/synapse/groups/attestations.py
+++ b/synapse/groups/attestations.py
@@ -139,6 +139,7 @@ class GroupAttestionRenewer(object):
                     "Incorrectly trying to do attestations for user: %r in %r",
                     user_id, group_id,
                 )
+                yield self.store.remove_attestation_renewal(group_id, user_id)
                 return
 
             yield self.transport_client.renew_group_attestation(