Merge pull request 'if no remote name, reask' (#61) from getNameAfterApproved into trunk
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Reviewed-on: #61
This commit is contained in:
commit
0f53ae0062
|
@ -87,6 +87,8 @@ func (p *PeerHelper) GetNick(id string) string {
|
||||||
nick, exists = p.peer.GetContactAttribute(id, attr.GetPeerScope(constants.Name))
|
nick, exists = p.peer.GetContactAttribute(id, attr.GetPeerScope(constants.Name))
|
||||||
if !exists {
|
if !exists {
|
||||||
nick = "[" + id + "]"
|
nick = "[" + id + "]"
|
||||||
|
// re-request
|
||||||
|
p.peer.SendGetValToPeer(id, attr.PublicScope, constants.Name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nick
|
return nick
|
||||||
|
|
Loading…
Reference in New Issue