about summary refs log tree commit diff stats
path: root/src/xmpp/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/message.c')
-rw-r--r--src/xmpp/message.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index 2cf7c4d3..35a4ae05 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -459,11 +459,7 @@ _chat_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
         }
 
         // create or update chat session
-        if (!chat_session_exists(jid->barejid)) {
-            chat_session_new(jid->barejid, recipient_supports);
-        } else {
-            chat_session_set_recipient_supports(jid->barejid, recipient_supports);
-        }
+        chat_session_on_incoming_message(jid->barejid, recipient_supports);
 
         // determine if the notifications happened whilst offline
         GTimeVal tv_stamp;