moving threads will refresh view for all connected clients as well

This commit is contained in:
Julian Lam
2013-05-08 15:07:01 -04:00
parent a0fa95b9f0
commit 2ca1986b40
2 changed files with 5 additions and 1 deletions

View File

@@ -293,6 +293,7 @@ var RDB = require('./redis.js'),
RDB.set('tid:' + tid + ':category_slug', data.categories[0].slug);
});
socket.emit('api:topic.move', { status: 'ok' });
io.sockets.in('topic_' + tid).emit('event:topic_moved', { tid: tid });
} else {
socket.emit('api:topic.move', { status: 'error' });
}