[Telepathy-commits] [telepathy-gabble/master] Don't clear HANDLE_OWNERS_NOT_AVAILABLE just because our own handle in a MUC has an owner

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Aug 19 10:53:01 PDT 2008


20080526162418-53eee-60cb5cf4378c706ee83720b5f1723ef4b44ec496.gz
---
 src/gabble-muc-channel.c |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/gabble-muc-channel.c b/src/gabble-muc-channel.c
index 35ee600..09d1258 100644
--- a/src/gabble-muc-channel.c
+++ b/src/gabble-muc-channel.c
@@ -1739,11 +1739,14 @@ _gabble_muc_channel_member_presence_updated (GabbleMucChannel *chan,
 
           if (owner_handle != 0)
             {
-              /* If at least one handle in the channel has an owner,
-               * the HANDLE_OWNERS_NOT_AVAILABLE flag should be removed.
-               */
-              tp_group_mixin_change_flags ((GObject *) chan, 0,
-                  TP_CHANNEL_GROUP_FLAG_HANDLE_OWNERS_NOT_AVAILABLE);
+              if (handle != mixin->self_handle)
+                {
+                  /* If at least one other handle in the channel has an owner,
+                   * the HANDLE_OWNERS_NOT_AVAILABLE flag should be removed.
+                   */
+                  tp_group_mixin_change_flags ((GObject *) chan, 0,
+                      TP_CHANNEL_GROUP_FLAG_HANDLE_OWNERS_NOT_AVAILABLE);
+                }
 
               g_signal_emit (chan, signals[CONTACT_JOIN], 0, owner_handle);
 
-- 
1.5.6.3




More information about the Telepathy-commits mailing list