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:
Steve Howell
2017-01-19 11:18:03 -08:00
committed by Tim Abbott
parent 5d52f1ec17
commit 73125e2718
12 changed files with 33 additions and 28 deletions

View File

@@ -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;