mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
play alert sound when receiving an incoming message
This commit is contained in:
parent
bd2c1c7375
commit
83e4b4737a
1 changed files with 2 additions and 2 deletions
|
|
@ -160,7 +160,7 @@ void CoreHandlers::onLogCollectionUploadProgressIndication (
|
|||
}
|
||||
|
||||
void CoreHandlers::onMessageReceived (
|
||||
const shared_ptr<linphone::Core> &,
|
||||
const shared_ptr<linphone::Core> &core,
|
||||
const shared_ptr<linphone::ChatRoom> &,
|
||||
const shared_ptr<linphone::ChatMessage> &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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue