Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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