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:
Pascal Precht 2020-11-17 19:59:39 +01:00 committed by Pascal Precht
parent 7005a3d7b6
commit 693214a940
1 changed files with 1 additions and 1 deletions

View File

@ -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
}