mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
potential fix for duplicate chat results, started recent replies block
This commit is contained in:
@@ -263,6 +263,13 @@ var SocketIO = require('socket.io').listen(global.server, { log:false }),
|
||||
notifications.mark_read(nid, uid);
|
||||
});
|
||||
|
||||
socket.on('api:topics.getRecentReplies', function(tid) {
|
||||
console.log('test');
|
||||
topics.getRecentReplies(tid, function(replies) {
|
||||
socket.emit('api:topics.getRecentReplies', replies);
|
||||
});
|
||||
});
|
||||
|
||||
socket.on('sendChatMessage', function(data) {
|
||||
var touid = data.touid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user