core: send updated profile to group when bio changes (#6352)

* core: send updated profile to group when bio changes

* redact short links from descriptions where group preferences prohibit them
This commit is contained in:
Evgeny authored and GitHub committed 2025-10-10 17:29:12 +01:00
1 parent e291a71ef3
commit f21ef8f55d
5 files changed
+84 -65

No files matched your search

+3 -3
View File
@@ -321,9 +321,9 @@ updateUserProfile db user p'
DB.execute db "UPDATE users SET user_member_profile_updated_at = ? WHERE user_id = ?" (currentTs, userId)
pure $ Just currentTs
| otherwise = pure userMemberProfileUpdatedAt
userMemberProfileChanged = newName /= displayName || newFullName /= fullName || newImage /= image
User {userId, userContactId, localDisplayName, profile = LocalProfile {profileId, displayName, fullName, image, localAlias}, userMemberProfileUpdatedAt} = user
Profile {displayName = newName, fullName = newFullName, image = newImage, preferences} = p'
userMemberProfileChanged = newName /= displayName || fn' /= fullName || d' /= shortDescr || img' /= image
User {userId, userContactId, localDisplayName, profile = LocalProfile {profileId, displayName, fullName, shortDescr, image, localAlias}, userMemberProfileUpdatedAt} = user
Profile {displayName = newName, fullName = fn', shortDescr = d', image = img', preferences} = p'
profile = toLocalProfile profileId p' localAlias
fullPreferences = fullPreferences' preferences