forked from cwtch.im/cwtch
Fix minor comments
This commit is contained in:
parent
b5fcc28353
commit
780357a6ac
|
@ -243,7 +243,7 @@ func (g *Group) GetAttribute(name string) (value string, exists bool) {
|
||||||
func ValidateInvite(invite string) (*groups.GroupInvite, error) {
|
func ValidateInvite(invite string) (*groups.GroupInvite, error) {
|
||||||
// We prefix invites for groups with torv3
|
// We prefix invites for groups with torv3
|
||||||
if strings.HasPrefix(invite, GroupInvitePrefix) {
|
if strings.HasPrefix(invite, GroupInvitePrefix) {
|
||||||
data, err := base64.StdEncoding.DecodeString(invite[5:])
|
data, err := base64.StdEncoding.DecodeString(invite[len(GroupInvitePrefix):])
|
||||||
if err == nil {
|
if err == nil {
|
||||||
// First attempt to unmarshal the json...
|
// First attempt to unmarshal the json...
|
||||||
var gci groups.GroupInvite
|
var gci groups.GroupInvite
|
||||||
|
|
Loading…
Reference in New Issue