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)