Commit ef81c667 authored by Anthony Léonard's avatar Anthony Léonard Committed by Maxim Cournoyer

fix typo in call::Info structure member

isOutoging -> isOutgoing

Change-Id: Ia25170b3c2bc9ccb34024e1aa5f3353f751ad3f2
Reviewed-by: Maxim Cournoyer's avatarMaxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
parent c57359af
......@@ -131,7 +131,7 @@ struct Info
Status status = Status::INVALID;
Type type = Type::INVALID;
std::string peer;
bool isOutoging;
bool isOutgoing;
bool audioMuted = false;
bool videoMuted = false;
bool isAudioOnly = false;
......
......@@ -968,7 +968,7 @@ ConversationModelPimpl::slotCallStarted(const std::string& callId)
{
try {
auto call = linked.owner.callModel->getCall(callId);
if (call.isOutoging)
if (call.isOutgoing)
addOrUpdateCallMessage(callId, QObject::tr("📞 Outgoing call").toStdString());
else
addOrUpdateCallMessage(callId, QObject::tr("📞 Incoming call").toStdString());
......@@ -983,14 +983,14 @@ ConversationModelPimpl::slotCallEnded(const std::string& callId)
try {
auto call = linked.owner.callModel->getCall(callId);
if (call.startTime.time_since_epoch().count() != 0) {
if (call.isOutoging)
if (call.isOutgoing)
addOrUpdateCallMessage(callId, QObject::tr("📞 Outgoing call - ").toStdString()
+ linked.owner.callModel->getFormattedCallDuration(callId));
else
addOrUpdateCallMessage(callId, QObject::tr("📞 Incoming call - ").toStdString()
+ linked.owner.callModel->getFormattedCallDuration(callId));
} else {
if (call.isOutoging)
if (call.isOutgoing)
addOrUpdateCallMessage(callId, QObject::tr("🕽 Missed outgoing call").toStdString());
else
addOrUpdateCallMessage(callId, QObject::tr("🕽 Missed incoming call").toStdString());
......
......@@ -148,7 +148,7 @@ NewCallModel::createCall(const std::string& url, bool isAudioOnly)
auto callInfo = std::make_shared<call::Info>();
callInfo->id = callId.toStdString();
callInfo->peer = url;
callInfo->isOutoging = true;
callInfo->isOutgoing = true;
callInfo->status = call::Status::SEARCHING;
callInfo->type = call::Type::DIALOG;
pimpl_->calls.emplace(callId.toStdString(), std::move(callInfo));
......@@ -376,7 +376,7 @@ NewCallModelPimpl::slotIncomingCall(const std::string& accountId, const std::str
auto callInfo = std::make_shared<call::Info>();
callInfo->id = callId;
callInfo->peer = fromId;
callInfo->isOutoging = false;
callInfo->isOutgoing = false;
callInfo->status = call::Status::INCOMING_RINGING;
callInfo->type = call::Type::DIALOG;
callInfo->isAudioOnly = callDetails["AUDIO_ONLY"] == "true" ? true : false;
......
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