mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-06-14 08:58:22 +02:00
Fix incorrect check in UpdateBotProfile
This commit is contained in:
parent
8e6640a6f6
commit
27303554b5
2
main.go
2
main.go
|
@ -375,7 +375,7 @@ func (bridge *Bridge) UpdateBotProfile() {
|
|||
|
||||
if botConfig.Displayname == "remove" {
|
||||
err = bridge.Bot.SetDisplayName("")
|
||||
} else if len(botConfig.Avatar) > 0 {
|
||||
} else if len(botConfig.Displayname) > 0 {
|
||||
err = bridge.Bot.SetDisplayName(botConfig.Displayname)
|
||||
}
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue