components: Drop telepathy client

The telepathy client component has been unmaintained for a long time.
Now that we rework the notifications massively it's time to drop the
support for it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3173>
This commit is contained in:
Julian Sparber
2024-02-09 20:08:25 +01:00
committed by Florian Müllner
parent d1cf01d67c
commit c5ec3e45e4
7 changed files with 4 additions and 1041 deletions

View File

@ -59,8 +59,7 @@ export const NotificationDestroyedReason = {
// Message tray has its custom Urgency enumeration. LOW, NORMAL and CRITICAL
// urgency values map to the corresponding values for the notifications received
// through the notification daemon. HIGH urgency value is used for chats received
// through the Telepathy client.
// through the notification daemon.
/** @enum {number} */
export const Urgency = {
LOW: 0,
@ -529,7 +528,6 @@ SignalTracker.registerDestroyableType(Notification);
export const NotificationBanner = GObject.registerClass({
Signals: {
'done-displaying': {},
'unfocused': {},
},
}, class NotificationBanner extends Calendar.NotificationMessage {
_init(notification) {
@ -1125,7 +1123,6 @@ export const MessageTray = GObject.registerClass({
let expired = (this._userActiveWhileNotificationShown &&
this._notificationTimeoutId === 0 &&
this._notification.urgency !== Urgency.CRITICAL &&
!this._banner.focused &&
!this._pointerInNotification) || this._notificationExpired;
let mustClose = this._notificationRemoved || !hasNotifications || expired;
@ -1166,9 +1163,7 @@ export const MessageTray = GObject.registerClass({
}
this._banner = this._notification.createBanner();
this._banner.connectObject(
'done-displaying', this._escapeTray.bind(this),
'unfocused', () => this._updateState(), this);
this._banner.connectObject('done-displaying', this._escapeTray.bind(this), this);
this._bannerBin.add_child(this._banner);