comparison 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
comparison
equal deleted inserted replaced
385:6dacaf81339a 386:415de998b91d
121 else: 121 else:
122 filter_ = getFilter() 122 filter_ = getFilter()
123 filter_(self.data, callback=callback, errback=errback) 123 filter_(self.data, callback=callback, errback=errback)
124 124
125 def filterDataCb(self, data, contact_jid, profile): 125 def filterDataCb(self, data, contact_jid, profile):
126 G.host.doAction('chat', contact_jid, [profile]) 126 chat_wid = G.host.doAction('chat', contact_jid, [profile])
127 chat_wid = G.host.selected_widget
128 127
129 if self.type == 'text' and 'text' in self.data: 128 if self.type == 'text' and 'text' in self.data:
130 text = self.data['text'] 129 text = self.data['text']
131 chat_wid.message_input.text += text 130 chat_wid.message_input.text += text
132 else: 131 else: