Close notification when declining incoming call. Call status wasn't propagated when removing it.

This commit is contained in:
Julien Wadel 2023-02-01 09:48:27 +01:00
parent bcdb348342
commit 982c275f3b
3 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -134,6 +134,7 @@ CallModel::~CallModel () {
}
void CallModel::removeCall(){
emit statusChanged(getStatus());
if(mCall){
mCall->removeListener(mCallListener);
mConferenceModel = nullptr;// Ordering deletion.

View file

@ -327,7 +327,7 @@ void Notifier::notifyReceivedCall (const shared_ptr<linphone::Call> &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));
});