diff --git a/src/components/core/CoreHandlers.cpp b/src/components/core/CoreHandlers.cpp index 99dae4143..375e0799c 100644 --- a/src/components/core/CoreHandlers.cpp +++ b/src/components/core/CoreHandlers.cpp @@ -160,7 +160,7 @@ void CoreHandlers::onLogCollectionUploadProgressIndication ( } void CoreHandlers::onMessageReceived ( - const shared_ptr &, + const shared_ptr &core, const shared_ptr &, const shared_ptr &message ) { @@ -168,7 +168,7 @@ void CoreHandlers::onMessageReceived ( if (contentType == "text/plain" || contentType == "application/vnd.gsma.rcs-ft-http+xml") { emit messageReceived(message); - + core->playLocal("OUTPUT/desktop/share/sounds/linphone/incoming_chat.wav"); const App *app = App::getInstance(); if (!app->hasFocus() && CoreManager::getInstance()->getSettingsModel()->getChatEnabled()) app->getNotifier()->notifyReceivedMessage(message);