From 1119587b590f3a72e6133b4d8c40b3b084f79acf Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 10 Aug 2019 15:33:13 +0300 Subject: [PATCH] Fix setting metadata of personal filtering community --- community.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/community.go b/community.go index 367f243..b651cef 100644 --- a/community.go +++ b/community.go @@ -68,8 +68,8 @@ func (user *User) createCommunity() { user.log.Warnln("Server responded with error creating personal filtering community:", err) return } else { - resp.GroupID = fmt.Sprintf("+%s:%s", req.Localpart, user.bridge.Config.Homeserver.Domain) user.log.Debugln("Personal filtering community", resp.GroupID, "already existed") + user.CommunityID = fmt.Sprintf("+%s:%s", req.Localpart, user.bridge.Config.Homeserver.Domain) } } else { user.log.Warnln("Unknown error creating personal filtering community:", err) @@ -77,10 +77,10 @@ func (user *User) createCommunity() { } } else { user.log.Infoln("Created personal filtering community %s", resp.GroupID) + user.CommunityID = resp.GroupID user.inviteToCommunity() user.updateCommunityProfile() } - user.CommunityID = resp.GroupID } func (user *User) addPortalToCommunity(portal *Portal) bool {