summaryrefslogtreecommitdiff
path: root/sunshine/connection.py
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2010-03-22 21:25:35 +0100
committerKrzysztof Klinikowski <kkszysiu@gmail.com>2010-03-22 21:25:35 +0100
commit4d36d4d1f60101e64ace5c457bedd9cb0732e8f6 (patch)
treea248715fbaded2a02e7fe147b085e58e9bf104ba /sunshine/connection.py
parent689574c6ebcfe49d9117966909c09afb9fbd936a (diff)
Messages sending to conferences should works now. (still needs testing)
Diffstat (limited to 'sunshine/connection.py')
-rw-r--r--sunshine/connection.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/sunshine/connection.py b/sunshine/connection.py
index 9b9b7ba..8c25934 100644
--- a/sunshine/connection.py
+++ b/sunshine/connection.py
@@ -569,13 +569,16 @@ class SunshineConnection(telepathy.server.Connection,
props = self._generate_props(telepathy.CHANNEL_TYPE_TEXT,
room_handle, False)
- channel = self._channel_manager.channel_for_props(props,
- signal=True, conversation=None)
if handles:
- print handles
+ #print handles
+ channel = self._channel_manager.channel_for_props(props,
+ signal=True, conversation=handles)
channel.MembersChanged('', handles, [], [], [],
0, telepathy.CHANNEL_GROUP_CHANGE_REASON_NONE)
+ else:
+ channel = self._channel_manager.channel_for_props(props,
+ signal=True, conversation=None)
if int(msg.content.klass) == 9:
timestamp = int(msg.time)