about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/xmpp/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index b668ce84..d578786e 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -1169,7 +1169,7 @@ _handle_chat(xmpp_stanza_t *const stanza, gboolean is_mam)
 {
     // ignore if type not chat or absent
     const char *type = xmpp_stanza_get_type(stanza);
-    if (!(g_strcmp0(type, "chat") == 0 || type == NULL)) {
+    if (type == NULL || g_strcmp0(type, STANZA_TYPE_CHAT) != 0) {
         return;
     }