mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #1059 from PR0M3TH3AN/codex/update-logout-handler-to-refresh-comments
Reload modal comments on logout
This commit is contained in:
1 file changed
+12
-1
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user