From 52eef2712ba4033183eeceae446af8983ac69a63 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Tue, 20 Dec 2022 11:19:39 +0100 Subject: [PATCH] Display a generic message if the text is empty in notifications. --- linphone-app/src/components/notifier/Notifier.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/linphone-app/src/components/notifier/Notifier.cpp b/linphone-app/src/components/notifier/Notifier.cpp index 13f8bab07..58f5d37ba 100644 --- a/linphone-app/src/components/notifier/Notifier.cpp +++ b/linphone-app/src/components/notifier/Notifier.cpp @@ -279,6 +279,8 @@ void Notifier::notifyReceivedMessages (const list 0){ shared_ptr message = messages.front(); + //: 'New messages received!' Notification that warn the user of new messages. + QString newMessage = tr("newChatRoomMessages"); if( messages.size() == 1){ if(! message->getFileTransferInformation() ){ @@ -289,8 +291,9 @@ void Notifier::notifyReceivedMessages (const list chatRoom(message->getChatRoom()); map["timelineModel"].setValue(CoreManager::getInstance()->getTimelineListModel()->getTimeline(chatRoom, true).get());