update to match connection.ConnectionStateToType name change for Goland
This commit is contained in:
parent
f973a2bfe5
commit
eca82ae45d
|
@ -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)
|
||||
|
|
Reference in New Issue