Replace old GroupID with new Dervied GroupID #357

Merged
erinn merged 6 commits from groupwiring into master 2021-05-18 19:37:18 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 780357a6ac - Show all commits

View File

@ -243,7 +243,7 @@ func (g *Group) GetAttribute(name string) (value string, exists bool) {
func ValidateInvite(invite string) (*groups.GroupInvite, error) {
// We prefix invites for groups with torv3
if strings.HasPrefix(invite, GroupInvitePrefix) {
data, err := base64.StdEncoding.DecodeString(invite[5:])
data, err := base64.StdEncoding.DecodeString(invite[len(GroupInvitePrefix):])
if err == nil {
// First attempt to unmarshal the json...
var gci groups.GroupInvite