[gnome-shell] telepathyClient: Promisify the right class



commit f5d1a2858d2a54f0344648ead219c553cd482737
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Oct 22 21:09:35 2020 +0200

    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 b51bedc4c2..0c9514e2b5 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');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]