Use User.FirstName for notifications instead of trying to determine it from User.Nickname

Этот коммит содержится в:
hmhealey
2015-07-13 15:39:53 -04:00
родитель fb42a74613
Коммит 079538d9e7
3 изменённых файлов: 11 добавлений и 32 удалений

Просмотреть файл

@@ -180,11 +180,7 @@ var UserStore = assign({}, EventEmitter.prototype, {
if (user && user.notify_props && user.notify_props.mention_keys) {
var keys = user.notify_props.mention_keys.split(',');
if (user.nickname.length > 0 && user.notify_props.first_name === "true") {
var first = user.nickname.split(' ')[0];
if (first.length > 0) keys.push(first);
}
if (user.first_name && user.notify_props.first_name === "true") keys.push(user.first_name);
if (user.notify_props.all === "true") keys.push('@all');
if (user.notify_props.channel === "true") keys.push('@channel');