This commit is contained in:
2026-04-07 20:12:56 +08:00
parent feed24f378
commit cf8be0bff5
35 changed files with 722 additions and 114 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ namespace IM_API.Services
var inviteInfo = await _context.GroupRequests
.FirstOrDefaultAsync(x => x.UserId == userid && x.StateEnum == GroupRequestState.TargetPending)
?? throw new BaseException(CodeDefine.INVALID_ACTION);
if (!(dto.Action == GroupRequestState.TargetPending ||
if (!(dto.Action == GroupRequestState.TargetPassed ||
dto.Action == GroupRequestState.TargetDeclined))
return;
inviteInfo.StateEnum = dto.Action;