[Telepathy-commits] [telepathy-gabble/master] Only set MUC channels' state to JOINED once.
Will Thompson
will.thompson at collabora.co.uk
Sun Feb 1 11:21:29 PST 2009
Previously, the state was re-set every time you got a presence for yourself in
a MUC.
---
src/muc-channel.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/src/muc-channel.c b/src/muc-channel.c
index aecdc2a..e077689 100644
--- a/src/muc-channel.c
+++ b/src/muc-channel.c
@@ -2021,6 +2021,7 @@ handle_member_added (GabbleMucChannel *chan,
initial_state_aggregator_free (
priv->initial_state_aggregator);
priv->initial_state_aggregator = NULL;
+ g_object_set (chan, "state", MUC_STATE_JOINED, NULL);
}
}
@@ -2040,11 +2041,6 @@ handle_member_added (GabbleMucChannel *chan,
tp_handle_unref (contact_handles, owner_handle);
}
- if (handle == mixin->self_handle)
- {
- g_object_set (chan, "state", MUC_STATE_JOINED, NULL);
- }
-
if (old_self_handle_singleton != NULL)
tp_intset_destroy (old_self_handle_singleton);
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list