mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
TelepathyClient: destroy an existing account notification when the user goes offline
We already filter new notifications caused by the explicit user action, but we don't do so for changes to existing notifications. https://bugzilla.gnome.org/show_bug.cgi?id=723976
This commit is contained in:
parent
492558a2d2
commit
6ce6e86318
1 changed files with 6 additions and 1 deletions
|
|
@ -1421,7 +1421,12 @@ const AccountNotification = new Lang.Class({
|
|||
if (status == Tp.ConnectionStatus.CONNECTED) {
|
||||
this.destroy();
|
||||
} else if (status == Tp.ConnectionStatus.DISCONNECTED) {
|
||||
this.update(this.title, this._getMessage(account.connection_error));
|
||||
let connectionError = account.connection_error;
|
||||
|
||||
if (connectionError == Tp.error_get_dbus_name(Tp.Error.CANCELLED))
|
||||
this.destroy();
|
||||
else
|
||||
this.update(this.title, this._getMessage(connectionError));
|
||||
}
|
||||
}));
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue