a couple final tweaks to contact list and such... #1788

This commit is contained in:
Julian Lam
2014-07-07 16:59:46 -04:00
parent ac9f104b39
commit 13e4e8dad7
3 changed files with 18 additions and 2 deletions

View File

@@ -81,6 +81,7 @@ var db = require('./database'),
message.fromUser = self ? userData[0] : userData[1];
message.toUser = self ? userData[1] : userData[0];
message.timestampISO = new Date(parseInt(message.timestamp, 10)).toISOString();
message.self = self ? 1 : 0;
Messaging.parse(message.content, message.fromuid, fromuid, userData[1], userData[0], isNew, function(result) {
message.content = result;