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
bd9504d0
Commit
bd9504d0
authored
Apr 08, 2013
by
Margaux Clerc
Committed by
jehan
Apr 09, 2013
Browse files
fix unread messages
parent
f2f51005
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
gtk/chat.c
gtk/chat.c
+2
-1
No files found.
gtk/chat.c
View file @
bd9504d0
...
...
@@ -450,7 +450,6 @@ void linphone_gtk_text_received(LinphoneCore *lc, LinphoneChatRoom *room,
if
(
w
!=
NULL
){
char
*
from_chatview
=
(
char
*
)
g_object_get_data
(
G_OBJECT
(
friendlist
),
"from"
);
if
(
g_strcmp0
(
from
,
from_chatview
)
==
0
){
linphone_chat_room_mark_as_read
(
room
);
send
=
TRUE
;
}
else
{
if
(
!
linphone_gtk_friend_list_is_contact
(
linphone_chat_message_get_from
(
msg
))){
...
...
@@ -485,6 +484,8 @@ void linphone_gtk_text_received(LinphoneCore *lc, LinphoneChatRoom *room,
if
(
send
){
if
(
gtk_notebook_get_current_page
(
notebook
)
!=
gtk_notebook_page_num
(
notebook
,
w
)){
linphone_gtk_show_friends
();
}
else
{
linphone_chat_room_mark_as_read
(
room
);
}
linphone_gtk_push_text
(
w
,
linphone_chat_message_get_from
(
msg
),
FALSE
,
room
,
msg
,
FALSE
);
...
...
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