Commit 96d23df3 authored by Erwan Croze's avatar Erwan Croze 👋🏻
Browse files

Reloading of the friend list after going to the chat room with shortcut

parent a3b3867a
......@@ -172,12 +172,18 @@ gboolean linphone_gtk_on_key_press(GtkWidget *widget, GdkEvent *event, gpointer
if (gtk_tree_model_get_iter_first(model, &iter)) {
int index = 0;
LinphoneFriend *lf = NULL;
LinphoneChatRoom *cr;
do{
if (index == key) {
const LinphoneAddress *uri;
gtk_tree_model_get (model, &iter,FRIEND_CHATROOM , &cr, -1);
gtk_tree_model_get (model, &iter,FRIEND_ID , &lf, -1);
uri = linphone_friend_get_address(lf);
linphone_gtk_friend_list_set_chat_conversation(uri);
if (lf != NULL) linphone_gtk_friend_list_set_chat_conversation(uri);
if (cr != NULL){
linphone_gtk_mark_chat_read(cr);
linphone_gtk_friend_list_update_button_display(GTK_TREE_VIEW(friendlist));
}
return TRUE;
}
index++;
......
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