diff --git a/src/media/text.cpp b/src/media/text.cpp
index f3c940ffde9304c3e55e75d939ce1adb884f0b98..2a38ccc8ae22958ccb3175dca08a3bf8aceb18fc 100644
--- a/src/media/text.cpp
+++ b/src/media/text.cpp
@@ -143,7 +143,7 @@ void IMConversationManagerPrivate::newMessage(const QString& callId, const QStri
    Q_UNUSED(from)
 
    auto call = CallModel::instance().getCall(callId);
-   if (!call and !call->peerContactMethod()) {
+   if (!call or !call->peerContactMethod()) {
       return;
    }