Merge branch 'trunk' of git.openprivacy.ca:flutter/libcwtch-go into rrgtj
This commit is contained in:
commit
e09e9c09a7
1
lib.go
1
lib.go
|
@ -204,6 +204,7 @@ func ReconnectCwtchForeground() {
|
||||||
|
|
||||||
|
|
||||||
application.GetPrimaryBus().Publish(event.NewEvent(utils.CwtchStarted, map[event.Field]string{}))
|
application.GetPrimaryBus().Publish(event.NewEvent(utils.CwtchStarted, map[event.Field]string{}))
|
||||||
|
application.QueryACNStatus()
|
||||||
application.QueryACNVersion()
|
application.QueryACNVersion()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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