mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	revamped handling of unread messages, so that a socket call is made to all socket clients whenever a new unread message is available. Prior behaviour had the unread count updated via ajax call on ajaxify (which was clumsy at best and didn't update automagically)
This commit is contained in:
		| @@ -149,6 +149,9 @@ var RDB = require('./redis'), | ||||
| 							next(); | ||||
| 						}); | ||||
| 					}, | ||||
| 					function(next) { | ||||
| 						topics.pushUnreadCount(null, next); | ||||
| 					}, | ||||
| 					function(next) { | ||||
| 						Posts.getCidByPid(postData.pid, function(err, cid) { | ||||
| 							if(err) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user