mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 04:42:57 +00:00
Reload modal comments on logout
This commit is contained in:
1 parent
f4ef1a474b
commit
62c0c344e0
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