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…
Reference in New Issue