Skip to content
Snippets Groups Projects
Commit b1cbd612 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

make whiteboard plugin work with gajim > 0.15. Fixes #22

parent 6fa92ab8
No related branches found
No related tags found
No related merge requests found
[info] [info]
name: Whiteboard name: Whiteboard
short_name: whiteboard short_name: whiteboard
version: 0.1 version: 0.2
description: Shows a whiteboard in chat. python-pygoocanvas is required. description: Shows a whiteboard in chat. python-pygoocanvas is required.
authors = Yann Leboulanger <asterix@lagaule.org> authors = Yann Leboulanger <asterix@lagaule.org>
homepage = www.gajim.org homepage = www.gajim.org
...@@ -471,8 +471,11 @@ def get_content(desc): ...@@ -471,8 +471,11 @@ def get_content(desc):
common.jingle_content.contents[NS_JINGLE_XHTML] = get_content common.jingle_content.contents[NS_JINGLE_XHTML] = get_content
class JingleTransportSXE(JingleTransport): class JingleTransportSXE(JingleTransport):
def __init__(self): def __init__(self, node=None):
JingleTransport.__init__(self, TransportType.streaming) if gajim.config.get('version') == '0.15':
JingleTransport.__init__(self, TransportType.streaming)
else:
JingleTransport.__init__(self, TransportType.SOCKS5)
def make_transport(self, candidates=None): def make_transport(self, candidates=None):
transport = JingleTransport.make_transport(self, candidates) transport = JingleTransport.make_transport(self, candidates)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment