mirror of https://github.com/zulip/zulip.git
Short circuit MIT case earlier in update_users().
This can be squashed with the prior commit, which inlined this MIT check into update_users() while trying to avoid other complications. After inlining the code, it's clear that we don't need to call the sort_users() line of code for MIT users, so I moved the MIT guard condition up. (imported from commit fa5b52e14964ad595b34d40ce6c8450ea93726c5)
This commit is contained in:
parent
7f3115fa53
commit
617b0a95d2
|
@ -82,12 +82,12 @@ function focus_lost() {
|
|||
}
|
||||
|
||||
function update_users() {
|
||||
var users = sort_users(Object.keys(presence_info), presence_info);
|
||||
|
||||
if (page_params.domain === 'mit.edu') {
|
||||
return; // MIT realm doesn't have a presence list
|
||||
}
|
||||
|
||||
var users = sort_users(Object.keys(presence_info), presence_info);
|
||||
|
||||
var my_info = {
|
||||
name: page_params.fullname,
|
||||
email: page_params.email,
|
||||
|
|
Loading…
Reference in New Issue