- if(!linphone_gtk_friend_list_is_contact(linphone_chat_message_get_from(msg))){
- linphone_gtk_chat_add_contact(linphone_chat_message_get_from(msg));
- }
- w=linphone_gtk_init_chatroom(room,linphone_chat_message_get_from(msg));
- g_object_set_data(G_OBJECT(friendlist),"chatview",(gpointer)w);
- g_object_set_data(G_OBJECT(friendlist),"from",from);
- }
- get_display_name(linphone_chat_message_get_from(msg));
-
- #ifdef HAVE_GTK_OSXs
+ if ( !linphone_gtk_friend_list_is_contact ( linphone_chat_message_get_from ( msg ) ) ) {
+ linphone_gtk_chat_add_contact ( linphone_chat_message_get_from ( msg ) );
+ }
+ w=linphone_gtk_init_chatroom ( room,linphone_chat_message_get_from ( msg ) );
+ g_object_set_data ( G_OBJECT ( friendlist ),"chatview", ( gpointer ) w );
+ g_object_set_data ( G_OBJECT ( friendlist ),"from",from );
+ }
+
+#ifdef HAVE_GTK_OSXs