From 38ff1d65d5e238a16a4fb7e216e70e38728de808 Mon Sep 17 00:00:00 2001 From: Morgan Collett Date: Fri, 29 Jun 2007 14:45:34 +0000 Subject: Cope with group channels that do not have channel-specific handles (e.g. Salut) --- (limited to 'chat.py') 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 -- cgit v0.9.1