mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 21:52:28 +00:00
remove cute language
This commit is contained in:
1 parent
9e246faa6f
commit
471a538622
6 files changed
+87
-85
No files matched your search
@@ -563,7 +563,7 @@ deleteUnusedProfile_ db userId profileId =
|
||||
-- | Updates the contact profile, writing the peer's contact_domain claim onto
|
||||
-- the profile. Resets contact_domain_verification to NULL only when the claimed
|
||||
-- name changes (the prior verification was tied to the prior claim); an XInfo
|
||||
-- carrying the same name keeps the existing status, exactly as a badge does. No
|
||||
-- with the same name keeps the existing status, exactly as a badge does. No
|
||||
-- conflict clearing (no UNIQUE index).
|
||||
updateContactProfile :: DB.Connection -> StoreCxt -> User -> Contact -> Profile -> ExceptT StoreError IO Contact
|
||||
updateContactProfile db cxt user@User {userId} c p' = do
|
||||
@@ -577,7 +577,7 @@ updateContactProfile db cxt user@User {userId} c p' = do
|
||||
Profile {displayName = newName, contactDomain, preferences} = p'
|
||||
mergedPreferences = contactUserPreferences user userPreferences preferences $ contactConnIncognito c
|
||||
claimChanged = prevDomain /= (unStrJSON <$> contactDomain)
|
||||
-- a name proof never rides an XInfo peer-send (we never mint or accept a PHTest name proof):
|
||||
-- a name proof is never sent in a profile update (XInfo) from the peer (we never make or accept a PHTest name proof):
|
||||
-- keep the stored proof when the name is unchanged, drop it when the name changes (then it's unverified)
|
||||
p'' = (p' :: Profile) {contactDomainProof = if claimChanged then Nothing else prevProof}
|
||||
clearVerificationIfClaimChanged =
|
||||
|
||||
Reference in new issue
Block a user