diff options
author | Erik Johnston <erikj@jki.re> | 2018-08-24 10:10:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-24 10:10:58 +0100 |
commit | 15e8dd2ccce14cdb66dd8eaf4580290aa3c486dd (patch) | |
tree | 3feefe9c0037c421a43d862ef8699758b6cf998b /synapse/storage/monthly_active_users.py | |
parent | Merge pull request #3747 from matrix-org/erikj/fix_multiple_sends_notice (diff) | |
parent | Newsfile (diff) | |
download | synapse-15e8dd2ccce14cdb66dd8eaf4580290aa3c486dd.tar.xz |
Merge pull request #3749 from matrix-org/erikj/add_trial_users
Implement trial users
Diffstat (limited to 'synapse/storage/monthly_active_users.py')
-rw-r--r-- | synapse/storage/monthly_active_users.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/storage/monthly_active_users.py b/synapse/storage/monthly_active_users.py index fd3b630bd2..d178f5c5ba 100644 --- a/synapse/storage/monthly_active_users.py +++ b/synapse/storage/monthly_active_users.py @@ -201,6 +201,11 @@ class MonthlyActiveUsersStore(SQLBaseStore): user_id(str): the user_id to query """ if self.hs.config.limit_usage_by_mau: + is_trial = yield self.is_trial_user(user_id) + if is_trial: + # we don't track trial users in the MAU table. + return + last_seen_timestamp = yield self.user_last_seen_monthly_active(user_id) now = self.hs.get_clock().time_msec() |