Fix condition on Accept
This commit is contained in:
parent
c230746546
commit
3960244756
|
@ -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!")
|
||||
|
|
Loading…
Reference in New Issue