From 7b3ff2c1af38da30661fa1956536a765b3d4c1d4 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Thu, 17 Jun 2021 16:58:11 -0700 Subject: [PATCH 1/2] check acn status on reconnect --- lib.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib.go b/lib.go index 6cfc981..1a1b657 100644 --- a/lib.go +++ b/lib.go @@ -198,6 +198,7 @@ func ReconnectCwtchForeground() { application.GetPrimaryBus().Publish(event.NewEvent(utils.CwtchStarted, map[event.Field]string{})) + application.QueryACNStatus() application.QueryACNVersion() } From e2cf1d25e3f1dde146f3a751131ca4153e537d49 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Thu, 17 Jun 2021 17:05:07 -0700 Subject: [PATCH 2/2] if no remote name, reask --- utils/manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/manager.go b/utils/manager.go index 87903fc..ec8156c 100644 --- a/utils/manager.go +++ b/utils/manager.go @@ -87,6 +87,8 @@ func (p *PeerHelper) GetNick(id string) string { nick, exists = p.peer.GetContactAttribute(id, attr.GetPeerScope(constants.Name)) if !exists { nick = "[" + id + "]" + // re-request + p.peer.SendGetValToPeer(id, attr.PublicScope, constants.Name) } } return nick