Skip to content
Snippets Groups Projects
Commit d44fbd52 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

account: check autoAnswerEnabled property when necessary

Change-Id: Ic8264b3b2b6f9cc3c4f92274830c49ed7fe3f87c
parent 1aa3e8a0
No related branches found
No related tags found
No related merge requests found
......@@ -283,6 +283,8 @@ public:
bool isRendezVous() const { return isRendezVous_; }
bool isAutoAnswerEnabled() const { return autoAnswerEnabled_; }
void attachCall(const std::string& id);
void detachCall(const std::string& id);
......
......@@ -2798,7 +2798,7 @@ Manager::ManagerPimpl::processIncomingCall(Call& incomCall, const std::string& a
emitSignal<DRing::CallSignal::ConferenceCreated>(conf->getConfID());
});
} else if (autoAnswer_) {
} else if (autoAnswer_ || account->isAutoAnswerEnabled()) {
dht::ThreadPool::io().run([incomCallId] { Manager::instance().answerCall(incomCallId); });
} else if (currentCall && currentCall->getCallId() != incomCallId) {
// Test if already calling this person
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment