mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 18:36:19 +08:00
DismissGroup
This commit is contained in:
parent
f6921161a0
commit
557980c63f
@ -1109,19 +1109,19 @@ func (s *groupServer) DismissGroup(ctx context.Context, req *pbGroup.DismissGrou
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if !req.DeleteMember {
|
//if !req.DeleteMember {
|
||||||
//s.Notification.GroupDismissedNotification(ctx, req)
|
//s.Notification.GroupDismissedNotification(ctx, req)
|
||||||
tips := &sdkws.GroupDismissedTips{
|
tips := &sdkws.GroupDismissedTips{
|
||||||
Group: s.groupDB2PB(group, owner.UserID, uint32(len(userIDs))),
|
Group: s.groupDB2PB(group, owner.UserID, uint32(len(userIDs))),
|
||||||
OpUser: &sdkws.GroupMemberFullInfo{},
|
OpUser: &sdkws.GroupMemberFullInfo{},
|
||||||
}
|
|
||||||
if mcontext.GetOpUserID(ctx) == owner.UserID {
|
|
||||||
tips.OpUser = s.groupMemberDB2PB(owner, 0)
|
|
||||||
} else {
|
|
||||||
tips.OpUser = &sdkws.GroupMemberFullInfo{UserID: mcontext.GetOpUserID(ctx)}
|
|
||||||
}
|
|
||||||
s.Notification.GroupDismissedNotification(ctx, tips)
|
|
||||||
}
|
}
|
||||||
|
if mcontext.GetOpUserID(ctx) == owner.UserID {
|
||||||
|
tips.OpUser = s.groupMemberDB2PB(owner, 0)
|
||||||
|
} else {
|
||||||
|
tips.OpUser = &sdkws.GroupMemberFullInfo{UserID: mcontext.GetOpUserID(ctx)}
|
||||||
|
}
|
||||||
|
s.Notification.GroupDismissedNotification(ctx, tips)
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user