1// Copyright 2019 Keybase, Inc. All rights reserved. Use of 2// this source code is governed by the included BSD license. 3 4package libkb 5 6import ( 7 keybase1 "github.com/keybase/client/go/protocol/keybase1" 8) 9 10func GetClientStatus(mctx MetaContext) (res []keybase1.ClientStatus) { 11 if mctx.G().ConnectionManager != nil { 12 res = mctx.G().ConnectionManager.ListAllLabeledConnections() 13 for i, client := range res { 14 res[i].NotificationChannels = mctx.G().NotifyRouter.GetChannels(ConnectionID(client.ConnectionID)) 15 } 16 } 17 return res 18} 19