Reload modal comments on logout

This commit is contained in:
thePR0M3TH3AN committed 2026-01-02 13:10:05 -05:00
1 parent f4ef1a474b
commit 62c0c344e0
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({