From f5d1a2858d2a54f0344648ead219c553cd482737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 22 Oct 2020 21:09:35 +0200 Subject: [PATCH] telepathyClient: Promisify the right class send_message_async() is a method of TpTextChannel, not the generic TpChannel parent class. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3226 --- js/ui/components/telepathyClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js index b51bedc4c..0c9514e2b 100644 --- a/js/ui/components/telepathyClient.js +++ b/js/ui/components/telepathyClient.js @@ -9,7 +9,7 @@ try { ({ TelepathyGLib: Tp, TelepathyLogger: Tpl } = imports.gi); Gio._promisify(Tp.Channel.prototype, 'close_async', 'close_finish'); - Gio._promisify(Tp.Channel.prototype, + Gio._promisify(Tp.TextChannel.prototype, 'send_message_async', 'send_message_finish'); Gio._promisify(Tp.ChannelDispatchOperation.prototype, 'claim_with_async', 'claim_with_finish');