|
|
|
@ -25,9 +25,7 @@ import (
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/prome"
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tokenverify"
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry"
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msggateway"
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/startrpc"
|
|
|
|
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
|
|
|
|
@ -84,9 +82,6 @@ func (s *Server) GetUsersOnlineStatus(
|
|
|
|
|
ctx context.Context,
|
|
|
|
|
req *msggateway.GetUsersOnlineStatusReq,
|
|
|
|
|
) (*msggateway.GetUsersOnlineStatusResp, error) {
|
|
|
|
|
if !tokenverify.IsAppManagerUid(ctx) {
|
|
|
|
|
return nil, errs.ErrNoPermission.Wrap("only app manager")
|
|
|
|
|
}
|
|
|
|
|
var resp msggateway.GetUsersOnlineStatusResp
|
|
|
|
|
for _, userID := range req.UserIDs {
|
|
|
|
|
clients, ok := s.LongConnServer.GetUserAllCons(userID)
|
|
|
|
|