mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Reloading of the friend list after going to the chat room with shortcut
This commit is contained in:
parent
a3b3867a6c
commit
96d23df39d
1 changed files with 7 additions and 1 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue