misc: do not commit end of the call for incoming 1:1 call

This causes a regression where we see both Incoming and Outgoing
missed call

Change-Id: Ic3d2ed2f4ca1018907619da33485af22f82da850
This commit is contained in:
Sébastien Blin
2022-11-21 11:59:41 -05:00
parent e037e6358c
commit ebcfa3eada

View File

@ -124,7 +124,7 @@ Call::Call(const std::shared_ptr<Account>& account,
if (auto jamiAccount = std::dynamic_pointer_cast<JamiAccount>(getAccount().lock())) {
// TODO: This will be removed when 1:1 swarm will have a conference.
// For now, only commit for 1:1 calls
if (toUsername().find('/') == std::string::npos) {
if (toUsername().find('/') == std::string::npos && getCallType() == CallType::OUTGOING) {
jamiAccount->convModule()->addCallHistoryMessage(getPeerNumber(),
getCallDuration().count());
}