mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
user-presence: Add offline status to aggregated info.
- Add `OFFLINE_THRESHOLD_SECS` settings parameter to handle offline period. - Set aggregated status to offline if user's status haven't changed for `OFFLINE_THRESHOLD_SECS` period. - Add test for offline aggregated status.
This commit is contained in:
@@ -203,6 +203,7 @@ DEFAULT_SETTINGS = {'TWITTER_CONSUMER_KEY': '',
|
||||
'ANALYTICS_LOCK_DIR': "/home/zulip/deployments/analytics-lock-dir",
|
||||
'PASSWORD_MIN_LENGTH': 6,
|
||||
'PASSWORD_MIN_ZXCVBN_QUALITY': 0.5,
|
||||
'OFFLINE_THRESHOLD_SECS': 5 * 60,
|
||||
}
|
||||
|
||||
for setting_name, setting_val in six.iteritems(DEFAULT_SETTINGS):
|
||||
|
||||
Reference in New Issue
Block a user