diff --git a/Linphone/core/notifier/Notifier.cpp b/Linphone/core/notifier/Notifier.cpp index 890b831f6..8612d3bf8 100644 --- a/Linphone/core/notifier/Notifier.cpp +++ b/Linphone/core/notifier/Notifier.cpp @@ -130,7 +130,7 @@ Notifier::~Notifier() { bool Notifier::createNotification(Notifier::NotificationType type, QVariantMap data) { mMutex->lock(); // Q_ASSERT(mInstancesNumber <= MaxNotificationsNumber); - if (mInstancesNumber == MaxNotificationsNumber) { // Check existing instances. + if (mInstancesNumber >= MaxNotificationsNumber) { // Check existing instances. qWarning() << QStringLiteral("Unable to create another notification."); mMutex->unlock(); return false; @@ -332,7 +332,8 @@ void Notifier::notifyReceivedMessages(const std::shared_ptr if (receiverAccount) { auto senderAccount = ToolModel::findAccount(message->getFromAddress()); auto currentAccount = CoreModel::getInstance()->getCore()->getDefaultAccount(); - if (senderAccount && senderAccount->getContactAddress()->weakEqual(currentAccount->getContactAddress())) { + if (senderAccount && senderAccount->getContactAddress() && currentAccount->getContactAddress() && + senderAccount->getContactAddress()->weakEqual(currentAccount->getContactAddress())) { qDebug() << "sender is current account, return"; return; } diff --git a/Linphone/data/languages/de.ts b/Linphone/data/languages/de.ts index ab42d9d5e..0a571e77d 100644 --- a/Linphone/data/languages/de.ts +++ b/Linphone/data/languages/de.ts @@ -5017,30 +5017,30 @@ Error - + new_voice_message 'Voice message received!' : message to warn the user in a notofication for voice messages. - + new_file_message - + new_conference_invitation 'Conference invitation received!' : Notification about receiving an invitation to a conference. - + new_chat_room_messages 'New messages received!' Notification that warn the user of new messages. - + new_message_alert_accessible_name New message on chatroom %1 diff --git a/Linphone/data/languages/en.ts b/Linphone/data/languages/en.ts index 477140e28..4b725a829 100644 --- a/Linphone/data/languages/en.ts +++ b/Linphone/data/languages/en.ts @@ -4924,30 +4924,30 @@ Expiration : %1 New call from %1 - + new_voice_message 'Voice message received!' : message to warn the user in a notofication for voice messages. Voice message received! - + new_file_message File received! - + new_conference_invitation 'Conference invitation received!' : Notification about receiving an invitation to a conference. Conference invitation received ! - + new_chat_room_messages 'New messages received!' Notification that warn the user of new messages. New messages received ! - + new_message_alert_accessible_name New message on chatroom %1 New message on chatroom %1 diff --git a/Linphone/data/languages/fr.ts b/Linphone/data/languages/fr.ts index 176204191..b800f53f4 100644 --- a/Linphone/data/languages/fr.ts +++ b/Linphone/data/languages/fr.ts @@ -4924,30 +4924,30 @@ Expiration : %1 Nouvel appel de %1 - + new_voice_message 'Voice message received!' : message to warn the user in a notofication for voice messages. Message vocal reçu ! - + new_file_message Fichier reçu ! - + new_conference_invitation 'Conference invitation received!' : Notification about receiving an invitation to a conference. Nouvelle invitation à une conférence ! - + new_chat_room_messages 'New messages received!' Notification that warn the user of new messages. Nouveaux messages reçus ! - + new_message_alert_accessible_name New message on chatroom %1 Nouveau message sur la conversation %1