mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
showing who is replying in the active users block
This commit is contained in:
@@ -4,6 +4,15 @@ define(['taskbar'], function(taskbar) {
|
||||
posts: {}
|
||||
};
|
||||
|
||||
function initialise() {
|
||||
socket.on('event:composer.ping', function(post_uuid) {
|
||||
if (composer.active !== post_uuid) {
|
||||
socket.emit('modules.composer.pingInactive', post_uuid);
|
||||
}
|
||||
});
|
||||
};
|
||||
initialise();
|
||||
|
||||
function maybeParse(response) {
|
||||
if (typeof response == 'string') {
|
||||
try {
|
||||
@@ -380,6 +389,16 @@ define(['taskbar'], function(taskbar) {
|
||||
} else {
|
||||
composer.createNewComposer(post_uuid);
|
||||
}
|
||||
|
||||
var tid = templates.get('topic_id');
|
||||
if (tid) {
|
||||
// Replying to a topic
|
||||
socket.emit('modules.composer.register', {
|
||||
uuid: post_uuid,
|
||||
tid: templates.get('topic_id'),
|
||||
uid: app.uid
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
composer.createNewComposer = function(post_uuid) {
|
||||
|
||||
Reference in New Issue
Block a user