forked from cwtch.im/ui
Automatically Peer with Contacts
This commit is contained in:
parent
c6eb2189b0
commit
611506633c
|
@ -40,6 +40,7 @@ func PresencePoller(getContact func(string) *gobjects.Contact, addContact func(c
|
||||||
|
|
||||||
cxnState, found := the.Peer.GetPeers()[contacts[i]]
|
cxnState, found := the.Peer.GetPeers()[contacts[i]]
|
||||||
if !found {
|
if !found {
|
||||||
|
the.Peer.PeerWithOnion(contacts[i])
|
||||||
c2 := getContact(contacts[i])
|
c2 := getContact(contacts[i])
|
||||||
if c2 != nil && c2.Status != -2 {
|
if c2 != nil && c2.Status != -2 {
|
||||||
c2.Status = -2
|
c2.Status = -2
|
||||||
|
|
Loading…
Reference in New Issue