diff --git a/src/messaging.js b/src/messaging.js index 71887ff365..6c6a02e0e6 100644 --- a/src/messaging.js +++ b/src/messaging.js @@ -254,7 +254,7 @@ var db = require('./database'), users: function(next) { user.getMultipleUserFields(uids, ['uid', 'username', 'picture', 'status'] , next); }, - chatTeasers: function(next) { + teasers: function(next) { var teasers = []; async.each(uids, function(fromuid, next) { Messaging.getMessages({ @@ -293,7 +293,7 @@ var db = require('./database'), if (user) { user.unread = results.unread[index]; user.status = sockets.isUserOnline(user.uid) ? user.status : 'offline'; - user.chatTeaser = results.chatTeasers[index]; + user.teaser = results.teasers[index]; } });