Fix build

This commit is contained in:
Julien Wadel 2021-08-01 23:37:03 +02:00
parent 497c411710
commit 464a750d16
2 changed files with 5 additions and 3 deletions

View file

@ -44,7 +44,8 @@ ChatCallModel::~ChatCallModel(){
std::shared_ptr<ChatCallModel> ChatCallModel::create(std::shared_ptr<linphone::CallLog> callLog, const bool& isStart, QObject * parent){
auto model = std::make_shared<ChatCallModel>(callLog, isStart, parent);
if(model && model->update()){
if(model ){
model->update();
model->mSelf = model;
return model;
}else
@ -76,10 +77,11 @@ void ChatCallModel::setIsOutgoing(const bool& data){
}
bool ChatCallModel::update(){
void ChatCallModel::update(){
setIsOutgoing(mCallLog->getDir() == linphone::Call::Dir::Outgoing);
setStatus(LinphoneEnums::fromLinphone(mCallLog->getStatus()));
}
void ChatCallModel::deleteEvent(){
CoreManager::getInstance()->getCore()->removeCallLog(mCallLog);
}

View file

@ -48,7 +48,7 @@ public:
void setStatus(const LinphoneEnums::CallStatus& status);
void setIsOutgoing(const bool& isOutgoing);
bool update();
void update();
virtual void deleteEvent() override;