Skip to content

Node.js based forum software built for the modern web

fix chat status unread etc.

Barış Soner Uşaklıe62bd2ab9e8c
diff --git a/src/messaging.js b/src/messaging.js
index 6b0e2318bf..f3020ed8f5 100644
--- a/src/messaging.js
+++ b/src/messaging.js
@@ -280,7 +280,7 @@ var db = require('./database'),
}
results.users.forEach(function(user, index) {
- if (user && !parseInt(user.uid, 10)) {
+ if (user && parseInt(user.uid, 10)) {
Messaging.markRead(uid, uids[index]);
user.unread = results.unread[index];
user.status = sockets.isUserOnline(user.uid) ? user.status : 'offline';