Mercurial > libervia-web
diff src/browser/sat_browser/chat.py @ 909:e8b133b77aa4
browser, server: update to get compatibility with 0.7-dev (not finished):
Q&D update to restore compatibility
- version changed to 0.7D
- contact list has been modified to be compatible with changes, but it doesn't take profit of improvment yet
- messageSend partially work, there is a disconnection and an error in console logs when sending a message
- message are not received yet
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 09 Aug 2016 01:07:15 +0200 |
parents | fa29524774d6 |
children | 0c0551967bdf |
line wrap: on
line diff
--- a/src/browser/sat_browser/chat.py Wed Jul 13 22:45:54 2016 +0200 +++ b/src/browser/sat_browser/chat.py Tue Aug 09 01:07:15 2016 +0200 @@ -162,9 +162,11 @@ return ("ONE2ONE" if self.type == C.CHAT_ONE2ONE else "GROUP", msg) def onTextEntered(self, text): - self.host.sendMessage(self.target, - text, - mess_type=C.MESS_TYPE_GROUPCHAT if self.type == C.CHAT_GROUP else C.MESS_TYPE_CHAT, + self.host.messageSend(self.target, + {'': text}, + {}, + C.MESS_TYPE_GROUPCHAT if self.type == C.CHAT_GROUP else C.MESS_TYPE_CHAT, + {}, errback=self.host.sendError, profile_key=C.PROF_KEY_NONE )