From 135bd5f5bb47ffc298fe6918de99ceacb02e075e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 5 Apr 2024 12:54:57 +0300 Subject: [PATCH] Don't try to set unconfigured tags --- user.go | 3 +++ 1 file changed, 3 insertions(+) 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 {