diff cagou/core/share_widget.py @ 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 a90f26e89a4a
children 3c9ba4a694ef
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']