media: fix isRecording for conferences

Change-Id: I17c751ec2cc85aa2a02bd257b26b141594897144
parent 34583bdf
......@@ -2379,8 +2379,12 @@ Manager::toggleRecordingCall(const std::string& id)
bool
Manager::isRecording(const std::string& id)
{
auto call = getCallFromCallID(id);
return call and (static_cast<Recordable*>(call.get()))->isRecording();
if (auto call = getCallFromCallID(id)) {
return (static_cast<Recordable*>(call.get()))->isRecording();
} else if (auto conf = getConferenceFromID(id)) {
return conf->isRecording();
}
return false;
}
bool
......
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