Use user_id to check if a message has a new person.

This prepares us for the upcoming ability to update
emails.
This commit is contained in:
Steve Howell 2017-02-04 09:42:02 -08:00 committed by Tim Abbott
parent d01493bc42
commit 955b85f515
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ exports.extract_people_from_message = function (message) {
var user_id = person.user_id || person.id;
if (! exports.get_by_email(person.email)) {
if (!people_by_user_id_dict.has(user_id)) {
exports.add({
email: person.email,
user_id: user_id,