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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user