From 0dbd7e5e6bbe056537a34113d338b9717de216f5 Mon Sep 17 00:00:00 2001
From: Edouard Denommee <edouard.denommee@savoirfairelinux.com>
Date: Fri, 16 Oct 2020 14:26:52 -0400
Subject: [PATCH] typo: registred -> registered

Change-Id: Ia7fdbfb41b27f3eacdddaa861041e966e455da0c
---
 src/dring/account_const.h   | 2 +-
 src/jamidht/jamiaccount.cpp | 4 ++--
 src/sip/sipcall.cpp         | 4 ++--
 src/sip/sipcall.h           | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/dring/account_const.h b/src/dring/account_const.h
index 42b656608c..d35b800c16 100644
--- a/src/dring/account_const.h
+++ b/src/dring/account_const.h
@@ -79,7 +79,7 @@ enum class testAccountICEInitializationStatus : int {
 namespace VolatileProperties {
 
 constexpr static const char ACTIVE[] = "Account.active";
-constexpr static const char REGISTERED_NAME[] = "Account.registredName";
+constexpr static const char REGISTERED_NAME[] = "Account.registeredName";
 
 // Volatile parameters
 namespace Registration {
diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp
index 7b6e4838fa..6acf3fe62f 100644
--- a/src/jamidht/jamiaccount.cpp
+++ b/src/jamidht/jamiaccount.cpp
@@ -500,7 +500,7 @@ JamiAccount::startOutgoingCall(const std::shared_ptr<SIPCall>& call, const std::
                                            const NameDirectory::Response& response) {
                                        if (response == NameDirectory::Response::found)
                                            if (auto call = wCall.lock()) {
-                                               call->setPeerRegistredName(result);
+                                               call->setPeerRegisteredName(result);
                                                call->setPeerUri(RING_URI_PREFIX + result);
                                            }
                                    });
@@ -2392,7 +2392,7 @@ JamiAccount::replyToIncomingIceMsg(const std::shared_ptr<SIPCall>& call,
                                            const NameDirectory::Response& response) {
                                        if (response == NameDirectory::Response::found)
                                            if (auto call = wcall.lock()) {
-                                               call->setPeerRegistredName(result);
+                                               call->setPeerRegisteredName(result);
                                                call->setPeerUri(RING_URI_PREFIX + result);
                                            }
                                    });
diff --git a/src/sip/sipcall.cpp b/src/sip/sipcall.cpp
index ad37507e0c..960e3d1601 100644
--- a/src/sip/sipcall.cpp
+++ b/src/sip/sipcall.cpp
@@ -1480,8 +1480,8 @@ SIPCall::getDetails() const
 #endif
 
 #if HAVE_RINGNS
-    if (not peerRegistredName_.empty())
-        details.emplace(DRing::Call::Details::REGISTERED_NAME, peerRegistredName_);
+    if (not peerRegisteredName_.empty())
+        details.emplace(DRing::Call::Details::REGISTERED_NAME, peerRegisteredName_);
 #endif
 
 #ifdef ENABLE_CLIENT_CERT
diff --git a/src/sip/sipcall.h b/src/sip/sipcall.h
index bc57ef515d..2caef05bce 100644
--- a/src/sip/sipcall.h
+++ b/src/sip/sipcall.h
@@ -222,7 +222,7 @@ public: // NOT SIP RELATED (good candidates to be moved elsewhere)
 
     void openPortsUPnP();
 
-    void setPeerRegistredName(const std::string& name) { peerRegistredName_ = name; }
+    void setPeerRegisteredName(const std::string& name) { peerRegisteredName_ = name; }
 
     void setPeerUri(const std::string& peerUri) { peerUri_ = peerUri; }
 
@@ -349,7 +349,7 @@ private:
     enum class Request { HoldingOn, HoldingOff, SwitchInput, NoRequest };
     Request remainingRequest_ {Request::NoRequest};
 
-    std::string peerRegistredName_ {};
+    std::string peerRegisteredName_ {};
 
     char contactBuffer_[PJSIP_MAX_URL_SIZE] {};
     pj_str_t contactHeader_ {contactBuffer_, 0};
-- 
GitLab