diff --git a/CHANGELOG.md b/CHANGELOG.md index e25ee0d66..10e23800d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - File viewer in chats (Image/Animated Image/Video/Texts) with the option to export the file. - Accept/decline CLI commands. +## 5.0.10 - undefined + +### Fixed +- Blank notification when declining incoming call. + ## 5.0.9 - 2023-01-30 ### Fixed diff --git a/linphone-app/src/components/call/CallModel.cpp b/linphone-app/src/components/call/CallModel.cpp index dd8952ea1..f000c5453 100644 --- a/linphone-app/src/components/call/CallModel.cpp +++ b/linphone-app/src/components/call/CallModel.cpp @@ -134,6 +134,7 @@ CallModel::~CallModel () { } void CallModel::removeCall(){ + emit statusChanged(getStatus()); if(mCall){ mCall->removeListener(mCallListener); mConferenceModel = nullptr;// Ordering deletion. diff --git a/linphone-app/src/components/notifier/Notifier.cpp b/linphone-app/src/components/notifier/Notifier.cpp index 58f5d37ba..8fcf48c4a 100644 --- a/linphone-app/src/components/notifier/Notifier.cpp +++ b/linphone-app/src/components/notifier/Notifier.cpp @@ -327,7 +327,7 @@ void Notifier::notifyReceivedCall (const shared_ptr &call) { map["call"].setValue(callModel); CREATE_NOTIFICATION(Notifier::ReceivedCall, map) - QObject::connect(callModel, &CallModel::statusChanged, notification, [this, notification](CallModel::CallStatus status) { + QObject::connect(callModel, &CallModel::statusChanged, notification, [this, notification](CallModel::CallStatus status) { if (status == CallModel::CallStatusEnded || status == CallModel::CallStatusConnected) deleteNotification(QVariant::fromValue(notification)); });