Skip to content
Snippets Groups Projects
Commit f69dfab9 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

conference: do not resend vcard

Do not resend vCards from client hosting conference.

Change-Id: I7d1c8932a36ab793b1c29bbe49541e89aaf90194
parent ba8e1cf4
Branches
No related tags found
No related merge requests found
......@@ -1903,7 +1903,17 @@ Manager::incomingMessage(const std::string& callID,
}
JAMI_DBG("Is a conference, send incoming message to everyone");
//filter out vcards messages as they could be resent by master as its own vcard
// TODO. Implement a protocol to handle vcard messages
bool sendToOtherParicipants = true;
for (auto& message : messages) {
if (message.first.find("x-ring/ring.profile.vcard") != std::string::npos) {
sendToOtherParicipants = false;
}
}
if (sendToOtherParicipants) {
pimpl_->sendTextMessageToConference(*conf, messages, from);
}
// in case of a conference we must notify client using conference id
emitSignal<DRing::CallSignal::IncomingMessage>(conf->getConfID(), from, messages);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment