This commit is contained in:
barisusakli
2016-11-10 16:19:27 +03:00
parent 5703bf6eac
commit 8294fc90e3
5 changed files with 15 additions and 6 deletions

View File

@@ -444,6 +444,9 @@ var userNotifications = require('./user/notifications');
};
Messaging.hasPrivateChat = function (uid, withUid, callback) {
if (parseInt(uid, 10) === parseInt(withUid, 10)) {
return callback(null, 0);
}
async.waterfall([
function (next) {
async.parallel({