telepathyClient: Close overview and panel when activated

There's a strong expectation that delegating or presenting a channel
will result in a window being activated, so close both overview and
calendar as we do elsewhere.
This commit is contained in:
Florian Müllner 2015-03-11 01:04:38 +01:00
parent 9becb3985d
commit 82479db084

View File

@ -356,6 +356,9 @@ const ChatSource = new Lang.Class({
},
open: function() {
Main.overview.hide();
Main.panel.closeCalendar();
if (this._client.is_handling_channel(this._channel)) {
// We are handling the channel, try to pass it to Empathy or Polari
// (depending on the channel type)