Mercurial > libervia-web
comparison src/server/server.py @ 751:2ddd85551612
server + browser side: getFeatures bridge call
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 23 Nov 2015 23:30:34 +0100 |
parents | 8ac862f6e5b3 |
children | 249e49f56f67 |
comparison
equal
deleted
inserted
replaced
750:8ac862f6e5b3 | 751:2ddd85551612 |
---|---|
680 def jsonrpc_getLastResource(self, jid_s): | 680 def jsonrpc_getLastResource(self, jid_s): |
681 """Get the last active resource of that contact.""" | 681 """Get the last active resource of that contact.""" |
682 profile = ISATSession(self.session).profile | 682 profile = ISATSession(self.session).profile |
683 return self.sat_host.bridge.getLastResource(jid_s, profile) | 683 return self.sat_host.bridge.getLastResource(jid_s, profile) |
684 | 684 |
685 # FIXME: as this belong to a plugin, it should be managed dynamically | 685 def jsonrpc_getFeatures(self): |
686 """Return the available features in the backend for profile""" | |
687 profile = ISATSession(self.session).profile | |
688 return self.sat_host.bridge.getFeatures(profile) | |
689 | |
686 def jsonrpc_skipOTR(self): | 690 def jsonrpc_skipOTR(self): |
687 """Tell the backend to leave OTR handling to Libervia.""" | 691 """Tell the backend to leave OTR handling to Libervia.""" |
688 profile = ISATSession(self.session).profile | 692 profile = ISATSession(self.session).profile |
689 return self.sat_host.bridge.skipOTR(profile) | 693 return self.sat_host.bridge.skipOTR(profile) |
690 | 694 |