Don't try to set unconfigured tags
This commit is contained in:
parent
3d0983203d
commit
135bd5f5bb
1 changed files with 3 additions and 0 deletions
3
user.go
3
user.go
|
@ -1144,6 +1144,9 @@ type CustomTagEventContent struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (user *User) updateChatTag(ctx context.Context, portal *Portal, tag string, active bool, existingTags CustomTagEventContent) {
|
func (user *User) updateChatTag(ctx context.Context, portal *Portal, tag string, active bool, existingTags CustomTagEventContent) {
|
||||||
|
if tag == "" {
|
||||||
|
return
|
||||||
|
}
|
||||||
var err error
|
var err error
|
||||||
currentTag, ok := existingTags.Tags[tag]
|
currentTag, ok := existingTags.Tags[tag]
|
||||||
if active && !ok {
|
if active && !ok {
|
||||||
|
|
Loading…
Reference in a new issue