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
This commit is contained in:
Florian Müllner 2020-10-22 21:09:35 +02:00
parent f940b0b139
commit f5d1a2858d

View File

@ -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');