The users field for window.activity.presence_info is keyed by email on the recurse.zulipchat.com. When sort in activity.js is called, it creates object.keys that are case sensitive while all the emails are lower cased causing undefined lookups. Newer versions of Zulip on local dev show this is an numeric id object mapping now.
Solution, migrate or to lower all the keys in sort or migrate keys run tolower in Django.
// Recurse Zulip
{"Foo@recurse.com": {
status: ...
}
}
// New zulip
{ 1 : {
status: ....
},
}
|
function sort_users(user_ids, presence_info) { |
Edited:
Problem: Searching inUsers with the term David throws Javascript errors.
recurse.zulipchat.com throws JavaScript Errors
there are over 23 david's in the zulip chat.


The users field for
window.activity.presence_infois keyed byemailon the recurse.zulipchat.com. When sort inactivity.jsis called, it creates object.keys that are case sensitive while all the emails are lower cased causingundefinedlookups. Newer versions of Zulip on local dev show this is an numeric id object mapping now.Solution, migrate or to lower all the keys in
sortor migrate keys runtolowerin Django.zulip/static/js/activity.js
Line 189 in 3d1bcb0
Edited:
Problem: Searching in
Userswith the termDavidthrows Javascript errors.recurse.zulipchat.com throws JavaScript Errors
there are over 23 david's in the zulip chat.