|
|
@@ -250,7 +250,10 @@ func (*groupApp) SetGroupMemberRemoveBanned(ctx context.Context, optId, groupId |
|
|
|
} |
|
|
|
|
|
|
|
if len(removeUserIds) > 0 { |
|
|
|
//给取消禁言用户推送消息 |
|
|
|
//1、更新 `group_user` 的 status 状态 |
|
|
|
db.DB.Model(model.GroupUser{}).Where("user_id in (?) and group_id = ?", removeUserIds, groupId).Updates(model.GroupUserV2{Status: sql.NullInt32{Int32: int32(pb.GroupUserStatusType_GROUP_USER_STATUS_NORMAL), Valid: true}}) |
|
|
|
|
|
|
|
//2、给取消禁言用户推送消息 |
|
|
|
for _, u := range removeUserIds { |
|
|
|
err = group.PushGroupMemberRemoveBanned(ctx, optId, u) |
|
|
|
if err != nil { |
|
|
|