Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
e518c6d0
Commit
e518c6d0
authored
Mar 20, 2013
by
Margaux Clerc
Browse files
fix dispaly unread messages
parent
22481072
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
gtk/chat.c
gtk/chat.c
+2
-4
No files found.
gtk/chat.c
View file @
e518c6d0
...
...
@@ -412,13 +412,12 @@ void linphone_gtk_text_received(LinphoneCore *lc, LinphoneChatRoom *room,
char
*
from
=
linphone_address_as_string
(
linphone_chat_message_get_from
(
msg
));
w
=
(
GtkWidget
*
)
g_object_get_data
(
G_OBJECT
(
friendlist
),
"chatview"
);
if
(
w
!=
NULL
){
char
*
from_chatview
=
(
char
*
)
g_object_get_data
(
G_OBJECT
(
w
),
"from"
);
char
*
from_chatview
=
(
char
*
)
g_object_get_data
(
G_OBJECT
(
friendlist
),
"from"
);
if
(
g_strcmp0
(
from
,
from_chatview
)
==
0
){
send
=
TRUE
;
}
else
{
send
=
FALSE
;
}
ms_free
(
from_chatview
);
}
}
else
{
w
=
linphone_gtk_init_chatroom
(
room
,
linphone_chat_message_get_from
(
msg
));
g_object_set_data
(
G_OBJECT
(
friendlist
),
"chatview"
,(
gpointer
)
w
);
...
...
@@ -445,7 +444,6 @@ void linphone_gtk_text_received(LinphoneCore *lc, LinphoneChatRoom *room,
linphone_gtk_show_friends
();
//linphone_gtk_friend_list_update_message(msg);
}
ms_free
(
from
);
//linphone_gtk_update_chat_picture();
//TODO: update la zone de notification dans les contacts (problème : lors du refresh de la liste
//connaitre tous les contacts qui ont des messages non lus ...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment