mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 11:06:43 +08:00
groupServer
This commit is contained in:
parent
c3345af45a
commit
8a8cd8655a
@ -502,12 +502,19 @@ func (s *groupServer) KickGroupMember(ctx context.Context, req *pbGroup.KickGrou
|
|||||||
NotificationUpdateTime: group.NotificationUpdateTime.UnixMilli(),
|
NotificationUpdateTime: group.NotificationUpdateTime.UnixMilli(),
|
||||||
NotificationUserID: group.NotificationUserID,
|
NotificationUserID: group.NotificationUserID,
|
||||||
},
|
},
|
||||||
OpUser: convert.Db2PbGroupMembersCMSResp(memberMap[opUserID]),
|
|
||||||
KickedUserList: []*sdkws.GroupMemberFullInfo{},
|
KickedUserList: []*sdkws.GroupMemberFullInfo{},
|
||||||
}
|
}
|
||||||
if len(owner) > 0 {
|
if len(owner) > 0 {
|
||||||
tips.Group.OwnerUserID = owner[0].UserID
|
tips.Group.OwnerUserID = owner[0].UserID
|
||||||
}
|
}
|
||||||
|
if opMember, ok := memberMap[opUserID]; ok {
|
||||||
|
tips.OpUser = convert.Db2PbGroupMembersCMSResp(opMember)
|
||||||
|
} else {
|
||||||
|
tips.OpUser = &sdkws.GroupMemberFullInfo{
|
||||||
|
GroupID: group.GroupID,
|
||||||
|
UserID: opUserID,
|
||||||
|
}
|
||||||
|
}
|
||||||
for _, userID := range req.KickedUserIDs {
|
for _, userID := range req.KickedUserIDs {
|
||||||
tips.KickedUserList = append(tips.KickedUserList, convert.Db2PbGroupMembersCMSResp(memberMap[userID]))
|
tips.KickedUserList = append(tips.KickedUserList, convert.Db2PbGroupMembersCMSResp(memberMap[userID]))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user