summary refs log tree commit diff
path: root/synapse/handlers/stats.py
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2020-08-05 17:04:03 -0400
committerHubert Chathi <hubert@uhoreg.ca>2020-08-05 17:04:03 -0400
commit460ebc558a2550a423ed859bdd0f74b22cba1859 (patch)
tree3ab978e67490cd5bc175cee767015d16d79f4aea /synapse/handlers/stats.py
parentmaybe this will make lint happy? (diff)
parentRename database classes to make some sense (#8033) (diff)
downloadsynapse-460ebc558a2550a423ed859bdd0f74b22cba1859.tar.xz
Merge remote-tracking branch 'origin/develop' into dehydration
Diffstat (limited to 'synapse/handlers/stats.py')
-rw-r--r--synapse/handlers/stats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/stats.py b/synapse/handlers/stats.py
index 149f861239..249ffe2a55 100644
--- a/synapse/handlers/stats.py
+++ b/synapse/handlers/stats.py
@@ -232,7 +232,7 @@ class StatsHandler:
 
                 if membership == prev_membership:
                     pass  # noop
-                if membership == Membership.JOIN:
+                elif membership == Membership.JOIN:
                     room_stats_delta["joined_members"] += 1
                 elif membership == Membership.INVITE:
                     room_stats_delta["invited_members"] += 1