Commit 4e275bda authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk

callwidget: change refuse button onclick

- now use refuse for refuse button onclick instead of hangup

Change-Id: I80a30e1ed4a8ad732ca84fcf031434d024c50f43
parent 8785d45a
......@@ -461,7 +461,7 @@ CallWidget::on_refuseButton_clicked()
{
auto convInfo = Utils::getSelectedConversation();
if (!convInfo.uid.empty()) {
LRCInstance::getCurrentCallModel()->hangUp(convInfo.callId);
LRCInstance::getCurrentCallModel()->refuse(convInfo.callId);
showConversationView();
}
}
......@@ -469,7 +469,11 @@ CallWidget::on_refuseButton_clicked()
void
CallWidget::on_cancelButton_clicked()
{
on_refuseButton_clicked();
auto convInfo = Utils::getSelectedConversation();
if (!convInfo.uid.empty()) {
LRCInstance::getCurrentCallModel()->hangUp(convInfo.callId);
showConversationView();
}
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment