# HG changeset patch # User souliane # Date 1409685681 -7200 # Node ID d58d4dd0cefed5c79090986828c4fd9e6c81e7ea # Parent 138336986bd0b6d94d1e0f56c2aed28db8bcfcc3 browser and server sides: add bridge method getLastResource diff -r 138336986bd0 -r d58d4dd0cefe src/browser/libervia_main.py --- a/src/browser/libervia_main.py Tue Sep 02 21:18:10 2014 +0200 +++ b/src/browser/libervia_main.py Tue Sep 02 21:21:21 2014 +0200 @@ -134,7 +134,7 @@ "getWaitingSub", "subscription", "delContact", "updateContact", "getCard", "getEntityData", "getParamsUI", "asyncGetParamA", "setParam", "launchAction", "disconnect", "chatStateComposing", "getNewAccountDomain", "confirmationAnswer", - "syntaxConvert", "getAccountDialogUI", + "syntaxConvert", "getAccountDialogUI", "getLastResource" ]) diff -r 138336986bd0 -r d58d4dd0cefe src/server/server.py --- 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