mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Update badge information correctly when updating user profile
This commit is contained in:
@@ -73,7 +73,9 @@ export async function encryptProfileData(
|
|||||||
name: Bytes.toBase64(bytesName),
|
name: Bytes.toBase64(bytesName),
|
||||||
about: bytesAbout ? Bytes.toBase64(bytesAbout) : null,
|
about: bytesAbout ? Bytes.toBase64(bytesAbout) : null,
|
||||||
aboutEmoji: bytesAboutEmoji ? Bytes.toBase64(bytesAboutEmoji) : null,
|
aboutEmoji: bytesAboutEmoji ? Bytes.toBase64(bytesAboutEmoji) : null,
|
||||||
badgeIds: (badges || []).map(({ id }) => id),
|
badgeIds: (badges || [])
|
||||||
|
.filter(badge => 'isVisible' in badge && badge.isVisible)
|
||||||
|
.map(({ id }) => id),
|
||||||
paymentAddress: window.storage.get('paymentAddress') || null,
|
paymentAddress: window.storage.get('paymentAddress') || null,
|
||||||
avatar: Boolean(newAvatar),
|
avatar: Boolean(newAvatar),
|
||||||
sameAvatar,
|
sameAvatar,
|
||||||
|
|||||||
Reference in New Issue
Block a user