Sem marks fixed

This commit is contained in:
RIT Services
2026-08-21 08:24:51 +00:00
parent 024cef38c5
commit 00b71831ee
2 changed files with 3 additions and 13 deletions

View File

@@ -167,20 +167,10 @@ public class WebhookController {
studentMenuHandler.handleMenuSelection(phoneNumber, selectedListId);
} else if (selectedListId.startsWith("sem_")) {
// They clicked an option from the semester selection list
if (currentState == UserState.AWAITING_SEMESTER_SELECTION) {
studentMenuHandler.handleSemesterSelection(phoneNumber, selectedListId);
} else {
messageService.sendMessage(phoneNumber, "This menu selection is no longer active.");
studentMenuHandler.sendMainMenu(phoneNumber);
}
studentMenuHandler.handleSemesterSelection(phoneNumber, selectedListId);
} else if (selectedListId.startsWith("receipt_") || selectedListId.startsWith("exam_") || selectedListId.startsWith("acad_") || selectedListId.startsWith("cons_")) {
// They clicked a receipt download option
if (currentState == UserState.AWAITING_RECEIPT_SELECTION) {
studentMenuHandler.handleReceiptSelection(phoneNumber, selectedListId);
} else {
messageService.sendMessage(phoneNumber, "This menu selection is no longer active.");
studentMenuHandler.sendMainMenu(phoneNumber);
}
studentMenuHandler.handleReceiptSelection(phoneNumber, selectedListId);
} else {
studentMenuHandler.sendMainMenu(phoneNumber);
}