messageTray: Don't create notification policy on demand
This was changed in commit 8f15193b4
as a work-around for an ES6
class limitation, but now that Sources are GObject subclasses, we
no longer need to use that somewhat surprising pattern.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1131
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
279072795f
commit
01a57206bc
@ -292,12 +292,12 @@ class TelepathyClient extends Tp.BaseClient {
|
||||
var ChatSource = HAVE_TP ? GObject.registerClass(
|
||||
class ChatSource extends MessageTray.Source {
|
||||
_init(account, conn, channel, contact, client) {
|
||||
super._init(contact.get_alias());
|
||||
|
||||
this._account = account;
|
||||
this._contact = contact;
|
||||
this._client = client;
|
||||
|
||||
super._init(contact.get_alias());
|
||||
|
||||
this.isChat = true;
|
||||
this._pendingMessages = [];
|
||||
|
||||
|
Reference in New Issue
Block a user