Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

realm_activity: Correct the "messages sent" column.

Alex Vandiverd4607437057c
diff --git a/corporate/views/realm_activity.py b/corporate/views/realm_activity.py
index 648a369bb3b..7a03aa54990 100644
--- a/corporate/views/realm_activity.py
+++ b/corporate/views/realm_activity.py
@@ -80,7 +80,7 @@ def get_user_activity_summary(records: Collection[UserActivity]) -> UserActivity
heard_from = max(visit, heard_from)
if ("send_message" in query) or re.search("/api/.*/external/.*", query):
- messages += 1
+ messages += record.count
if last_sent is None:
last_sent = visit
else: