Open JohnVeness opened 1 year ago
It looks like iOS has this behavior as well:
https://github.com/signalapp/Signal-iOS/blob/91a6b934b24ceacd11b5dd5e2ce4261b9aace022/SignalMessaging/utils/Avatars/AvatarBuilder.swift#L523-L524 https://github.com/signalapp/Signal-iOS/blob/91a6b934b24ceacd11b5dd5e2ce4261b9aace022/SignalServiceKit/src/Util/OWSFormat.swift#L38-L39
import Foundation
print(PersonNameComponentsFormatter.localizedString(from: PersonNameComponents(givenName: "alice"), style: .abbreviated)) // "A"
Bug Description
I have a contact on Signal who has just supplied a lower-case name, e.g. "alice" and hasn't uploaded a profile photo. The Android app generates an avatar with a lower-case "a" in a circle, but the Desktop app generates an avatar with an upper-case "A" in a circle.
Steps to Reproduce
Actual Result: The Android app generates an avatar with a lower-case "a" in a circle. The Desktop app generates an avatar with an upper-case "A" in a circle.
Expected Result: The Android app generates an avatar with a lower-case "a" in a circle. The Desktop app generates an avatar with a lower-case "a" in a circle. Alternatively, the desktop app doesn't auto-generate an avatar at all and just copies a bitmap from the linked device.
Screenshots
Sorry, not right now, but hopefully you get the idea.
Platform Info
Signal Version: 6.29.1 Operating System: Linux Linked Device Version: 6.30.4 on Android 13