From eca82ae45d7888332e4005cb8001e52de146bb75 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 26 Jul 2019 13:52:11 -0700 Subject: [PATCH] update to match connection.ConnectionStateToType name change for Goland --- go/characters/incominglistener.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/characters/incominglistener.go b/go/characters/incominglistener.go index 40a58224..f81078e8 100644 --- a/go/characters/incominglistener.go +++ b/go/characters/incominglistener.go @@ -74,7 +74,7 @@ func IncomingListener(uiState *gothings.InterfaceState, subscribed chan bool) { case event.SendMessageToPeerError: uiState.AddSendMessageError(e.Data[event.RemotePeer], e.Data[event.Signature], e.Data[event.Error]) case event.PeerStateChange: - cxnState := connections.ConnectionStateType[e.Data[event.ConnectionState]] + cxnState := connections.ConnectionStateToType[e.Data[event.ConnectionState]] if contact, exists := the.Peer.GetProfile().Contacts[e.Data[event.RemotePeer]]; exists { uiContact := uiState.GetContact(contact.Onion) if uiContact != nil && uiContact.Status != int(cxnState) { @@ -91,7 +91,7 @@ func IncomingListener(uiState *gothings.InterfaceState, subscribed chan bool) { } case event.ServerStateChange: serverOnion := e.Data[event.GroupServer] - state := connections.ConnectionStateType[e.Data[event.ConnectionState]] + state := connections.ConnectionStateToType[e.Data[event.ConnectionState]] groups := the.Peer.GetGroups() for _, groupID := range groups { group := the.Peer.GetGroup(groupID)