mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 12:29:37 +00:00
fix: ensure letter identicon determines correct channel color
When the `StatusLetterIdenticon` received a `#channel` name that starts with `#`, it wouldn't properly determine the channel color because of not stripping out the `#`.
This commit is contained in:
parent
7005a3d7b6
commit
693214a940
@ -12,7 +12,7 @@ Rectangle {
|
||||
radius: width / 2
|
||||
|
||||
color: {
|
||||
const color = chatsModel.getChannelColor(root.chatName)
|
||||
const color = chatsModel.getChannelColor(root.chatName.startsWith("#") ? root.chatName.substr(1) : root.chatName)
|
||||
if (!color) {
|
||||
return Style.current.transparent
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user