add out of call chat notifications

Now the user should received desktop notifications for chat messages
received if the Ring window is either not active, or if the chat
conversation is not open.

Tuleap: #268
Change-Id: I4e1735879f84b9e28c6ab5011cebd6c162606362
diff --git a/src/currentcallview.cpp b/src/currentcallview.cpp
index 8d8808d..aff269f 100644
--- a/src/currentcallview.cpp
+++ b/src/currentcallview.cpp
@@ -636,7 +636,7 @@
     gtk_container_add(GTK_CONTAINER(priv->frame_chat), chat_view);
 
     /* check if there were any chat notifications and open the chat view if so */
-    if (ring_notify_close_chat_notification(priv->call))
+    if (ring_notify_close_chat_notification(priv->call->peerContactMethod()))
         gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(priv->togglebutton_chat), TRUE);
 
     /* show chat view on any new incoming messages */