cmd/tailscale: prefer showing Sharer user over Owner user

Fixes tailscale/corp#14056
Updates tailscale/tailscale#8967

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/136/head
Brad Fitzpatrick 1 year ago committed by Brad Fitzpatrick
parent cb2e7da117
commit c21bbc94a1

@ -1085,9 +1085,10 @@ func (a *App) updateState(act jni.Object, state *clientState) {
continue continue
} }
} }
users[p.User()] = struct{}{} uid := p.SharerOrUser()
users[uid] = struct{}{}
uiPeers = append(uiPeers, UIPeer{ uiPeers = append(uiPeers, UIPeer{
Owner: p.User(), Owner: uid,
Peer: p.AsStruct(), Peer: p.AsStruct(),
}) })
} }

Loading…
Cancel
Save