mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 04:12:02 +00:00
refactor: Move is_current_user() to people.js.
We no longer have it in util.js, because we will want to encapsulate this better for upcoming commits related to email changes.
This commit is contained in:
@@ -106,7 +106,7 @@ exports.would_receive_message = function (email) {
|
||||
// helpful if we want to emphasize the '.unfaded' class later (applied
|
||||
// to users who will definitely receive the message).
|
||||
|
||||
if (util.is_current_user(email)) {
|
||||
if (people.is_current_user(email)) {
|
||||
// We never want to fade you yourself, so pretend it's true even if
|
||||
// it's not.
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user