changeset 386:415de998b91d

share widget: use new return value of doAction to get chat widget
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2020 20:47:17 +0100
parents 6dacaf81339a
children d61bbbac4160
files cagou/core/share_widget.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/core/share_widget.py	Tue Feb 04 20:47:17 2020 +0100
+++ b/cagou/core/share_widget.py	Tue Feb 04 20:47:17 2020 +0100
@@ -123,8 +123,7 @@
             filter_(self.data, callback=callback, errback=errback)
 
     def filterDataCb(self, data, contact_jid, profile):
-        G.host.doAction('chat', contact_jid, [profile])
-        chat_wid = G.host.selected_widget
+        chat_wid = G.host.doAction('chat', contact_jid, [profile])
 
         if self.type == 'text' and 'text' in self.data:
             text = self.data['text']