feat(navigation): add schedule tab and stack navigator
Add new ScheduleTab to main navigation with ScheduleStackNavigator for managing course schedule screens. Includes CourseDetailScreen with modal presentation. Also exports scheduleService and related types for the new schedule feature. fix(message): add group_id parameter to invite and request handlers Pass group_id from extra_data when calling respondInvite and reviewJoinRequest APIs, as the backend now requires this parameter. refactor(message): extract mergeMessagesById helper method Centralize message merging logic into a reusable private method to avoid duplication and ensure consistent message deduplication behavior.
This commit is contained in:
@@ -77,20 +77,25 @@ const GroupRequestDetailScreen: React.FC = () => {
|
||||
|
||||
const handleDecision = async (approve: boolean) => {
|
||||
const flag = extra_data?.flag;
|
||||
const groupId = extra_data?.group_id;
|
||||
if (!flag) {
|
||||
Alert.alert('提示', '缺少请求标识,无法处理');
|
||||
return;
|
||||
}
|
||||
if (!groupId) {
|
||||
Alert.alert('提示', '缺少群组标识,无法处理');
|
||||
return;
|
||||
}
|
||||
|
||||
setSubmitting(true);
|
||||
try {
|
||||
if (message.system_type === 'group_invite') {
|
||||
await groupService.respondInvite({
|
||||
await groupService.respondInvite(groupId, {
|
||||
flag,
|
||||
approve,
|
||||
});
|
||||
} else {
|
||||
await groupService.reviewJoinRequest({
|
||||
await groupService.reviewJoinRequest(groupId, {
|
||||
flag,
|
||||
approve,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user