mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-06 20:23:08 +00:00
Fix : Do not show received message notification for outgoing message
This commit is contained in:
parent
e44f98ab98
commit
ae08795274
1 changed files with 3 additions and 9 deletions
|
|
@ -187,6 +187,8 @@ void CoreHandlers::onMessageReceived (
|
|||
const shared_ptr<linphone::ChatRoom> &chatRoom,
|
||||
const shared_ptr<linphone::ChatMessage> &message
|
||||
) {
|
||||
if( message->isOutgoing() )
|
||||
return;
|
||||
const string contentType = message->getContentType();
|
||||
|
||||
if (contentType == "text/plain" || contentType == "application/vnd.gsma.rcs-ft-http+xml") {
|
||||
|
|
@ -209,15 +211,7 @@ void CoreHandlers::onMessageReceived (
|
|||
|
||||
if (
|
||||
!app->hasFocus() ||
|
||||
!CoreManager::getInstance()->getTimelineListModel()->getChatRoomModel(chatRoom, false)
|
||||
/*
|
||||
!CoreManager::getInstance()->chatRoomModelExists(
|
||||
Utils::coreStringToAppString(chatRoom->getPeerAddress()->asStringUriOnly()),
|
||||
Utils::coreStringToAppString(chatRoom->getLocalAddress()->asStringUriOnly()),
|
||||
chatRoom->getSecurityLevel() == linphone::ChatRoomSecurityLevel::Encrypted
|
||||
|| chatRoom->getSecurityLevel() == linphone::ChatRoomSecurityLevel::Safe
|
||||
|
||||
)*/
|
||||
!CoreManager::getInstance()->getTimelineListModel()->getChatRoomModel(chatRoom, false)
|
||||
)
|
||||
core->playLocal(Utils::appStringToCoreString(settingsModel->getChatNotificationSoundPath()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue