Mercurial > libervia-backend
comparison src/plugins/plugin_sec_otr.py @ 2129:6a66c8c5a567
core: replaced calls to client.xmlstream.send by client.send which is the right method to use. client.xmlstream should not be used directly
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 04 Feb 2017 17:59:13 +0100 |
parents | aa94f33fd2ad |
children | c0577837680a |
comparison
equal
deleted
inserted
replaced
2128:aa94f33fd2ad | 2129:6a66c8c5a567 |
---|---|
92 'type': 'chat', | 92 'type': 'chat', |
93 'extra': {}, | 93 'extra': {}, |
94 'timestamp': time.time(), | 94 'timestamp': time.time(), |
95 } | 95 } |
96 self.host.generateMessageXML(mess_data) | 96 self.host.generateMessageXML(mess_data) |
97 client.xmlstream.send(mess_data['xml']) | 97 client.send(mess_data['xml']) |
98 | 98 |
99 def setState(self, state): | 99 def setState(self, state): |
100 client = self.user.client | 100 client = self.user.client |
101 old_state = self.state | 101 old_state = self.state |
102 super(Context, self).setState(state) | 102 super(Context, self).setState(state) |