Skip to content

Commit 66aba12

Browse files
committed
Automatically activate room chat when no other chat is activated when chat panel becomes visible, partially implemnting #246
1 parent 95c898a commit 66aba12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/js/directives/chat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ define(['jquery', 'underscore', 'text!partials/chat.html', 'text!partials/chatro
582582
var subscope = scope.showGroupRoom(null, {
583583
restore: true,
584584
noenable: true,
585-
noactivate: true
585+
noactivate: !!scope.currentRoomActive
586586
});
587587
if (scope.currentRoomName != room.Name) {
588588
var msg = $("<span>").text(translation._("You are now in room %s ...", room.Name));

0 commit comments

Comments
 (0)