From 361d7befd12d778795529982c2083e174d8a5836 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Mon, 3 May 2021 14:29:01 -0700 Subject: [PATCH] Disable Automatic Peer Invites for Now --- protocol/connections/engine.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol/connections/engine.go b/protocol/connections/engine.go index 920cb60..51df35a 100644 --- a/protocol/connections/engine.go +++ b/protocol/connections/engine.go @@ -469,7 +469,8 @@ func (e *engine) sendMessageToGroup(server string, ct []byte, sig []byte) error func (e *engine) handlePeerMessage(hostname string, eventID string, context string, message []byte) { log.Debugf("New message from peer: %v %v", hostname, context) if context == event.ContextInvite { - e.eventManager.Publish(event.NewEvent(event.NewGroupInvite, map[event.Field]string{event.TimestampReceived: time.Now().Format(time.RFC3339Nano), event.RemotePeer: hostname, event.GroupInvite: string(message)})) + // TODO: Convert this to an inline peer message... + // e.eventManager.Publish(event.NewEvent(event.NewGroupInvite, map[event.Field]string{event.TimestampReceived: time.Now().Format(time.RFC3339Nano), event.RemotePeer: hostname, event.GroupInvite: string(message)})) } else if context == event.ContextGetVal { var getVal peerGetVal err := json.Unmarshal(message, &getVal)