mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
This mostly moves logic into people.js. The people functions added here are glorified two-liners. One thing that changes here is that we are a bit more rigorous about duplicate names. The code is slightly awkward, because this commit preserves the strange behavior that if 'alice|42' doesn't match on the user with the name "alice" and user_id "42", we instead look for a user whose name is "alice|42". That seems like a misfeature to me, but there's a test for it, so I want to check with Tim that it's not intentional behavior before I simplify the code.
5.0 KiB
5.0 KiB