Browse Source

Automatically activate room chat when no other chat is activated when chat panel becomes visible, partially implemnting #246

pull/248/head
Simon Eisenmann 10 years ago
parent
commit
66aba12c63
  1. 2
      static/js/directives/chat.js

2
static/js/directives/chat.js

@ -582,7 +582,7 @@ define(['jquery', 'underscore', 'text!partials/chat.html', 'text!partials/chatro @@ -582,7 +582,7 @@ define(['jquery', 'underscore', 'text!partials/chat.html', 'text!partials/chatro
var subscope = scope.showGroupRoom(null, {
restore: true,
noenable: true,
noactivate: true
noactivate: !!scope.currentRoomActive
});
if (scope.currentRoomName != room.Name) {
var msg = $("<span>").text(translation._("You are now in room %s ...", room.Name));

Loading…
Cancel
Save