Merge pull request #1059 from PR0M3TH3AN/codex/update-logout-handler-to-refresh-comments

Reload modal comments on logout
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-02 13:20:42 -05:00
commit 0302b3cde6
1 file changed
+12 -1
+12 -1
View File
@@ -4022,7 +4022,18 @@ class Application {
}
this.applyLoggedOutUiState();
this.commentController?.refreshAuthState?.();
const activeModalVideo =
typeof this.videoModal?.getCurrentVideo === "function"
? this.videoModal.getCurrentVideo()
: this.commentController?.currentVideo || null;
if (this.commentController && activeModalVideo) {
// Regression guard: ensure logout refreshes the modal thread so comments stay visible without reopening.
this.commentController.load(activeModalVideo);
} else {
this.commentController?.refreshAuthState?.();
}
try {
await this.handleModerationSettingsChange({