mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Close notification when declining incoming call. Call status wasn't propagated when removing it.
This commit is contained in:
parent
bcdb348342
commit
982c275f3b
3 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@ CallModel::~CallModel () {
|
|||
}
|
||||
|
||||
void CallModel::removeCall(){
|
||||
emit statusChanged(getStatus());
|
||||
if(mCall){
|
||||
mCall->removeListener(mCallListener);
|
||||
mConferenceModel = nullptr;// Ordering deletion.
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue