From 097ee5d2a22a9bb7b868fbe5b0477e89811f8544 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 27 Sep 2015 16:07:07 -0400 Subject: [PATCH] user icons in chat modal and page --- src/messaging.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/messaging.js b/src/messaging.js index 8ffb3a579e..76851ac9da 100644 --- a/src/messaging.js +++ b/src/messaging.js @@ -145,7 +145,7 @@ var db = require('./database'), }; function getMessages(mids, fromuid, touid, isNew, callback) { - user.getUsersFields([fromuid, touid], ['uid', 'username', 'userslug', 'picture', 'status'], function(err, userData) { + user.getUsersFields([fromuid, touid], ['uid', 'username', 'userslug', 'picture', 'icon:bgColor', 'icon:text', 'status'], function(err, userData) { if(err) { return callback(err); } @@ -263,7 +263,7 @@ var db = require('./database'), db.isSortedSetMembers('uid:' + uid + ':chats:unread', uids, next); }, users: function(next) { - user.getUsersFields(uids, ['uid', 'username', 'picture', 'status'] , next); + user.getUsersFields(uids, ['uid', 'username', 'picture', 'icon:bgColor', 'icon:text', 'status'] , next); }, teasers: function(next) { async.map(uids, function(fromuid, next) {