瀏覽代碼

Merge branch 'peerAdd' of dan/cwtch into master

tags/v0.3.6
Sarah Jamie Lewis Gogs 6 月之前
父節點
當前提交
87a0265142
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      peer/cwtch_peer.go

+ 3
- 0
peer/cwtch_peer.go 查看文件

@@ -211,6 +211,9 @@ func (cp *cwtchPeer) GetGroupState(groupid string) connections.ConnectionState {

// PeerWithOnion is the entry point for cwtchPeer relationships
func (cp *cwtchPeer) PeerWithOnion(onion string) {
if _, exists := cp.Profile.GetContact(onion); !exists {
cp.AddContact(onion, onion, false)
}
cp.eventBus.Publish(event.NewEvent(event.PeerRequest, map[event.Field]string{event.RemotePeer: onion}))
}



Loading…
取消
儲存