Don't try to set unconfigured tags

This commit is contained in:
Tulir Asokan 2024-04-05 12:54:57 +03:00
parent 3d0983203d
commit 135bd5f5bb

View file

@ -1144,6 +1144,9 @@ type CustomTagEventContent struct {
}
func (user *User) updateChatTag(ctx context.Context, portal *Portal, tag string, active bool, existingTags CustomTagEventContent) {
if tag == "" {
return
}
var err error
currentTag, ok := existingTags.Tags[tag]
if active && !ok {