Removed logging after finding issue with channels and leaves

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-26 20:09:54 +02:00
parent f19992060e
commit 7ab5d4f399
2 changed files with 20 additions and 22 deletions

View File

@@ -126,7 +126,6 @@ function check_inlist(coll, guid, socket, offline, callback, double_check)
if(typeof(callback) == "function") callback();
return;
}
console.log(coll, double_check);
//coll = coll.replace(/ /g,'');
if(!offline && coll != undefined){
db.collection("connected_users").update({"_id": coll}, {$addToSet:{users: guid}}, {upsert: true}, function(err, updated) {
@@ -385,8 +384,7 @@ function remove_from_chat_channel(coll, guid) {
});
}
function left_channel(coll, guid, short_id, in_list, socket, change) {
console.log(coll, guid, short_id, in_list, change);
function left_channel(coll, guid, short_id, in_list, socket, change, caller) {
if(!coll) {
if(!change) {
remove_name_from_db(guid, coll);