Silently add chat source in the MessageTray
We don't want the tray bar to open/close quickly when adding a chat because it happens when user opens the chat from Empathy. The notification will popup on incoming message anyway. https://bugzilla.gnome.org/show_bug.cgi?id=657249
This commit is contained in:
parent
2b2a8b4747
commit
c23919df15
@ -1495,8 +1495,11 @@ MessageTray.prototype = {
|
||||
// after notifications are done showing. However, we don't want that to happen for
|
||||
// transient sources, which are removed after the notification is shown, but are
|
||||
// not removed fast enough because of the callbacks to avoid the summary popping up.
|
||||
// So we just don't add transient sources to this._newSummaryItems .
|
||||
if (!source.isTransient)
|
||||
// So we just don't add transient sources to this._newSummaryItems.
|
||||
// We don't want that to happen for chat sources neither, because they
|
||||
// can be added when the user starts a chat from Empathy and they are not transient.
|
||||
// The notification will popup on incoming message anyway. See bug #657249.
|
||||
if (!source.isTransient && !source.isChat)
|
||||
this._newSummaryItems.push(summaryItem);
|
||||
|
||||
source.connect('notify', Lang.bind(this, this._onNotify));
|
||||
|
Loading…
Reference in New Issue
Block a user