currentcallview: fix Gtk warning and critical messages

- fix new-messages-displayed signal's name (new-interactions-displayed)
- call update_temporary on the correct object.

Change-Id: Id95637b4621f7e39842c9bca67a0c21629b8138c
diff --git a/src/currentcallview.cpp b/src/currentcallview.cpp
index a3e0fbf..3256032 100644
--- a/src/currentcallview.cpp
+++ b/src/currentcallview.cpp
@@ -84,6 +84,7 @@
     GtkWidget *button_hangup;
     GtkWidget *scalebutton_quality;
     GtkWidget *checkbutton_autoquality;
+    GtkWidget *chat_view;
 
     /* The webkit_chat_container is created once, then reused for all chat
      * views */
@@ -864,11 +865,11 @@
                                               priv->vbox_call_smartInfo);
 
     // init chat view
-    auto chat_view = chat_view_new(WEBKIT_CHAT_CONTAINER(priv->webkit_chat_container), priv->accountContainer_, priv->conversation_);
-    gtk_container_add(GTK_CONTAINER(priv->frame_chat), chat_view);
+    priv->chat_view = chat_view_new(WEBKIT_CHAT_CONTAINER(priv->webkit_chat_container), priv->accountContainer_, priv->conversation_);
+    gtk_container_add(GTK_CONTAINER(priv->frame_chat), priv->chat_view);
 
-    g_signal_connect_swapped(chat_view, "new-messages-displayed", G_CALLBACK(show_chat_view), view);
-    chat_view_set_header_visible(CHAT_VIEW(chat_view), FALSE);
+    g_signal_connect_swapped(priv->chat_view, "new-interactions-displayed", G_CALLBACK(show_chat_view), view);
+    chat_view_set_header_visible(CHAT_VIEW(priv->chat_view), FALSE);
 
 }
 
@@ -893,3 +894,11 @@
 
     return *priv->conversation_;
 }
+
+GtkWidget *
+current_call_view_get_chat_view(CurrentCallView *self)
+{
+    g_return_val_if_fail(IS_CURRENT_CALL_VIEW(self), nullptr);
+    auto priv = CURRENT_CALL_VIEW_GET_PRIVATE(self);
+    return priv->chat_view;
+}