diff --git a/user.go b/user.go index a5ed8f3..9d74ef9 100644 --- a/user.go +++ b/user.go @@ -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 {