Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/chat.py
diff options
context:
space:
mode:
authorMorgan Collett <morgan.collett@gmail.com>2007-06-29 14:45:34 (GMT)
committer Morgan Collett <morgan.collett@gmail.com>2007-06-29 14:45:34 (GMT)
commit38ff1d65d5e238a16a4fb7e216e70e38728de808 (patch)
tree3edcd0e6ab02d21447a2721eb5bc67eddc29a72f /chat.py
parentcffe9789fbc07f1d9e4b96d205c3b0560202ab4d (diff)
Cope with group channels that do not have channel-specific handles (e.g. Salut)
Diffstat (limited to 'chat.py')
-rw-r--r--chat.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/chat.py b/chat.py
index 5ec518a..c9a1ecd 100644
--- a/chat.py
+++ b/chat.py
@@ -333,8 +333,11 @@ class TextChannel():
my_csh = group.GetSelfHandle()
if my_csh == cs_handle:
handle = conn.GetSelfHandle()
- else:
+ elif group.GetGroupFlags() & \
+ telepathy.CHANNEL_GROUP_FLAG_CHANNEL_SPECIFIC_HANDLES:
handle = group.GetHandleOwners([cs_handle])[0]
+ else:
+ handle = cs_handle
# XXX: deal with failure to get the handle owner
assert handle != 0