From 95f288bac50cbb9a0002c2bd545abb4da486af2b Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 18 May 2021 16:05:06 -0700 Subject: [PATCH] Save Group Name from Invite --- model/profile.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/model/profile.go b/model/profile.go index b326989..8edd590 100644 --- a/model/profile.go +++ b/model/profile.go @@ -2,6 +2,7 @@ package model import ( "crypto/rand" + "cwtch.im/cwtch/model/attr" "cwtch.im/cwtch/protocol/groups" "encoding/base32" "encoding/hex" @@ -380,6 +381,7 @@ func (p *Profile) ProcessInvite(invite string) (string, error) { group.GroupServer = gci.ServerHost group.Accepted = false group.Attributes = make(map[string]string) + group.Attributes[attr.GetLocalScope("name")] = gci.GroupName p.AddGroup(group) return gci.GroupID, nil }