people.js: Rename realm_get -> get_active_user_for_email.

We rename this function to be more clear, and we also remove
a stray function name for `realm_get` that was for the wrong
exported function.
This commit is contained in:
Steve Howell
2017-10-26 09:52:42 -07:00
parent 2699a6aac9
commit f8f4d9cb63
3 changed files with 11 additions and 11 deletions

View File

@@ -117,7 +117,7 @@ exports.would_receive_message = function (email) {
}
if (focused_recipient.type === 'stream') {
var user = people.realm_get(email);
var user = people.get_active_user_for_email(email);
var sub = stream_data.get_sub(focused_recipient.stream);
if (!sub) {
// If the stream isn't valid, there is no risk of a mix