remove unnecessary change

This commit is contained in:
Evgeny Poberezkin
2026-07-11 16:04:07 +01:00
parent 21e116c702
commit 741c2bc4c7
+1 -5
View File
@@ -2721,11 +2721,7 @@ updateGroupProfile db user@User {userId} g@GroupInfo {groupId, localDisplayName,
-- group_domain is owned by publicGroup; when the incoming profile has no publicGroup (a business, whose domain
-- is set out-of-band) the CASE leaves the stored group_domain unchanged instead of clearing it.
updateGroupProfile_ currentTs =
-- the wire carries the domain but not its signed proof (the group's link is authoritative for the claim), so
-- keep the stored proof on an unchanged domain instead of overwriting it with the empty incoming one, the same
-- way updateContactProfile preserves contactDomain's proof
let (groupWebPage_, groupDomain_, domainWebPage_, allowEmbedding_, _) = publicGroupAccessRow publicGroup
groupDomainProof_ = if claimChanged then Nothing else oldPublicGroup >>= publicGroupAccess >>= groupDomainClaim >>= proof
let (groupWebPage_, groupDomain_, domainWebPage_, allowEmbedding_, groupDomainProof_) = publicGroupAccessRow publicGroup
in DB.execute
db
[sql|