From 3960244756a2fa7b5be9aae788b6601365468818 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 16 Mar 2021 13:54:31 -0700 Subject: [PATCH] Fix condition on Accept --- features/groups/group_functionality.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/groups/group_functionality.go b/features/groups/group_functionality.go index f5ba3a5..2f17e2d 100644 --- a/features/groups/group_functionality.go +++ b/features/groups/group_functionality.go @@ -27,7 +27,7 @@ func ExperimentGate(experimentMap map[string]bool) (*GroupFunctionality, error) func (gf *GroupFunctionality) SendMessage(peer peer.CwtchPeer, handle string, message string) error { // TODO this auto accepting behaviour needs some thinking through - if peer.GetGroup(handle).Accepted { + if !peer.GetGroup(handle).Accepted { err := peer.AcceptInvite(handle) if err != nil { log.Errorf("tried to mark a nonexistent group as existed. bad!")