]> git.0d.be Git - empathy.git/commitdiff
chat: don't display latest logs in room
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 1 Dec 2009 17:33:39 +0000 (17:33 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 1 Dec 2009 17:33:39 +0000 (17:33 +0000)
libempathy-gtk/empathy-chat.c

index 9d8b89c26e1e5e9e72c192f85b49b5737686651e..a203672660907bbf6eba32a64c7c4c57fc9a05b2 100644 (file)
@@ -2187,8 +2187,10 @@ static void
 chat_constructed (GObject *object)
 {
        EmpathyChat *chat = EMPATHY_CHAT (object);
+       EmpathyChatPriv *priv = GET_PRIV (chat);
 
-       chat_add_logs (chat);
+       if (priv->handle_type != TP_HANDLE_TYPE_ROOM)
+               chat_add_logs (chat);
        show_pending_messages (chat);
 }