Mercurial > libervia-web
diff src/server/server.py @ 520:d58d4dd0cefe
browser and server sides: add bridge method getLastResource
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 02 Sep 2014 21:21:21 +0200 |
parents | 530c88c1deee |
children | 69bffcf37ce3 |
line wrap: on
line diff
--- a/src/server/server.py Tue Sep 02 21:18:10 2014 +0200 +++ b/src/server/server.py Tue Sep 02 21:21:21 2014 +0200 @@ -552,6 +552,11 @@ profile = ISATSession(self.session).profile return self.sat_host.bridge.syntaxConvert(text, syntax_from, syntax_to, True, profile) + def jsonrpc_getLastResource(self, jid_s): + """Tell the backend to leave us OTR handling""" + profile = ISATSession(self.session).profile + return self.sat_host.bridge.getLastResource(jid_s, profile) + class Register(JSONRPCMethodManager): """This class manage the registration procedure with SàT