messageTray: Special-case chat notifications to use the old actor

This commit is contained in:
Florian Müllner 2015-02-20 11:18:15 +01:00
parent 67eade6482
commit cd5318baa7

View File

@ -1889,6 +1889,10 @@ const MessageTray = new Lang.Class({
this.idleMonitor.add_user_active_watch(Lang.bind(this, this._onIdleMonitorBecameActive)); this.idleMonitor.add_user_active_watch(Lang.bind(this, this._onIdleMonitorBecameActive));
} }
// HACK: didn't manage to get chat into a proper state in time
if (this._notification.source.isChat)
this._banner = this._notification;
else
this._banner = this._notification.createBanner(); this._banner = this._notification.createBanner();
this._bannerClickedId = this._banner.connect('done-displaying', this._bannerClickedId = this._banner.connect('done-displaying',
Lang.bind(this, this._escapeTray)); Lang.bind(this, this._escapeTray));