Show users editing and lag, properly send message to indicate that all users have left channel and show basic error box if disconnected.

This commit is contained in:
Caleb James DeLisle
2014-11-03 16:07:39 +01:00
parent 5ae599fa07
commit 6cbdcdec65
8 changed files with 191 additions and 58 deletions

View File

@@ -31,7 +31,7 @@ var insert = function (coll, channelName, content, cb) {
};
var getMessages = function (coll, channelName, cb) {
coll.find({chan:channelName}).forEach(function (doc) {
coll.find({chan:channelName}).sort( { _id: 1 } ).forEach(function (doc) {
cb(doc.msg);
}, function (err) {
if (!err) { return; }