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
e7022216
Commit
e7022216
authored
Apr 14, 2016
by
Sylvain Berfini
🐮
Browse files
Small trick to display received file transfer message url in chat
parent
62756b79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
gtk/chat.c
gtk/chat.c
+7
-0
No files found.
gtk/chat.c
View file @
e7022216
...
...
@@ -180,6 +180,11 @@ void linphone_gtk_push_text(GtkWidget *w, const LinphoneAddress *from,
g_object_set_data
(
G_OBJECT
(
w
),
"from_message"
,
g_strdup
(
from_str
));
}
ms_free
(
from_str
);
if
(
!
message
)
{
const
char
*
external_body_url
=
linphone_chat_message_get_external_body_url
(
msg
);
if
(
external_body_url
)
message
=
external_body_url
;
}
// Inserts message body and tags URIs as hypertext links
if
(
message
)
{
...
...
@@ -611,6 +616,8 @@ void linphone_gtk_text_received ( LinphoneCore *lc, LinphoneChatRoom *room,
/*GtkNotebook *notebook= ( GtkNotebook * ) linphone_gtk_get_widget ( main_window,"viewswitch" );*/
const
LinphoneAddress
*
from
=
linphone_chat_message_get_from
(
msg
);
linphone_core_take_preview_snapshot
(
lc
,
"/home/viish/capture.jpg"
);
w
=
(
GtkWidget
*
)
g_object_get_data
(
G_OBJECT
(
friendlist
),
"chatview"
);
if
(
w
!=
NULL
)
{
/* Chat window opened */
...
...
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