Commit 7f7893d6 authored by Sébastien Blin's avatar Sébastien Blin

videoview: do not send DTMF for Jami accounts

Change-Id: I655ee80a0f904e2e470291156cb9b89e9b2dc503
Gitlab: #515
parent 9bc98748
......@@ -475,9 +475,10 @@ void
VideoView::keyReleaseEvent(QKeyEvent* event)
{
auto convInfo = LRCInstance::getCurrentConversation();
if (convInfo.uid.empty()) {
if (convInfo.uid.empty()
|| LRCInstance::getCurrentAccountInfo().profileInfo.type != lrc::api::profile::Type::SIP)
return;
}
if (keyPressed_ == static_cast<int>(Qt::Key_NumberSign)) {
LRCInstance::getCurrentCallModel()->playDTMF(convInfo.callId, "#");
} else if (keyPressed_ == static_cast<int>(Qt::Key_Asterisk)) {
......
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