Mercurial > libervia-desktop-kivy
comparison cagou/plugins/plugin_wid_chat.py @ 442:c2b63d3bb088
chat: fixed discoInfos call
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 07 Mar 2020 00:05:50 +0100 |
parents | ff548846df91 |
children | 61322ff8090b |
comparison
equal
deleted
inserted
replaced
441:ff548846df91 | 442:c2b63d3bb088 |
---|---|
729 self.changeWidget(jid_) | 729 self.changeWidget(jid_) |
730 | 730 |
731 def discoEb(failure): | 731 def discoEb(failure): |
732 log.warning("Disco failure, ignore this text: {}".format(failure)) | 732 log.warning("Disco failure, ignore this text: {}".format(failure)) |
733 | 733 |
734 G.host.bridge.discoInfos(jid_.domain, self.profile, callback=discoCb, | 734 G.host.bridge.discoInfos( |
735 errback=discoEb) | 735 jid_.domain, |
736 profile_key=self.profile, | |
737 callback=discoCb, | |
738 errback=discoEb) | |
736 | 739 |
737 def onHeaderInputCompleted(self, input_wid, completed_text): | 740 def onHeaderInputCompleted(self, input_wid, completed_text): |
738 self._hi_comp_allowed = False | 741 self._hi_comp_allowed = False |
739 input_wid.text = completed_text | 742 input_wid.text = completed_text |
740 self._hi_comp_allowed = True | 743 self._hi_comp_allowed = True |