2007-05-20 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/gossip-chat-view.c: Correctly remember if last message
comes from the self contact or another.
svn path=/trunk/; revision=85
+2007-05-20 Xavier Claessens <xclaesse@gmail.com>
+
+ * libempathy-gtk/gossip-chat-view.c: Correctly remember if last message
+ comes from the self contact or another.
+
2007-05-20 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/gossip-contact-list-model.c:
{
GossipChatViewPriv *priv;
GossipContact *sender;
+ GossipContact *my_contact;
const gchar *body;
gboolean scroll_down;
}
}
- priv->last_block_type = BLOCK_TYPE_SELF;
+ my_contact = gossip_contact_get_user (sender);
+
+ if (gossip_contact_equal (my_contact, sender)) {
+ priv->last_block_type = BLOCK_TYPE_SELF;
+ } else {
+ priv->last_block_type = BLOCK_TYPE_OTHER;
+ }
/* Reset the last inserted contact, since it was from self. */
if (priv->last_contact) {