Fix condition on Accept

This commit is contained in:
Sarah Jamie Lewis 2021-03-16 13:54:31 -07:00
parent c230746546
commit 3960244756
1 changed files with 1 additions and 1 deletions

View File

@ -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!")