Commit e7022216 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Small trick to display received file transfer message url in chat

parent 62756b79
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment