mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
Remove legacy Direct Message privacy UI
Removes the "Direct message privacy" section from the profile modal's Messages tab, as these settings are now managed via the AppShell (gear icon). - Removed privacy section HTML from `components/profile-modal.html`. - Updated `js/ui/profileModalController.js` to remove legacy DOM references and event listeners. - Preserved `handleReadReceiptsToggle` and `handleTypingIndicatorsToggle` methods for AppShell integration. - Updated `syncDmPrivacySettingsUi` to be a no-op to prevent errors in existing call sites.
This commit is contained in:
1 parent
a126bc2d0e
commit
ac4d087f3e
4 files changed
+56
-47
No files matched your search
@@ -1297,8 +1297,6 @@ export class ProfileModalController {
|
||||
this.profileMessagesRelayAddButton = null;
|
||||
this.profileMessagesRelayPublishButton = null;
|
||||
this.profileMessagesRelayStatus = null;
|
||||
this.profileMessagesReadReceiptsToggle = null;
|
||||
this.profileMessagesTypingToggle = null;
|
||||
this.profileMessagesUnreadDot = null;
|
||||
this.dmAppShellContainer = null;
|
||||
this.dmAppShell = null;
|
||||
@@ -1616,10 +1614,6 @@ export class ProfileModalController {
|
||||
document.getElementById("profileMessagesRelayPublish") || null;
|
||||
this.profileMessagesRelayStatus =
|
||||
document.getElementById("profileMessagesRelayStatus") || null;
|
||||
this.profileMessagesReadReceiptsToggle =
|
||||
document.getElementById("profileMessagesReadReceiptsToggle") || null;
|
||||
this.profileMessagesTypingToggle =
|
||||
document.getElementById("profileMessagesTypingToggle") || null;
|
||||
this.profileMessagesUnreadDot =
|
||||
document.getElementById("profileMessagesUnreadDot") || null;
|
||||
this.dmAppShellContainer =
|
||||
@@ -2133,17 +2127,9 @@ export class ProfileModalController {
|
||||
}
|
||||
|
||||
syncDmPrivacySettingsUi() {
|
||||
const settings = this.getDmPrivacySettingsSnapshot();
|
||||
|
||||
if (this.profileMessagesReadReceiptsToggle instanceof HTMLInputElement) {
|
||||
this.profileMessagesReadReceiptsToggle.checked =
|
||||
settings.readReceiptsEnabled;
|
||||
}
|
||||
|
||||
if (this.profileMessagesTypingToggle instanceof HTMLInputElement) {
|
||||
this.profileMessagesTypingToggle.checked =
|
||||
settings.typingIndicatorsEnabled;
|
||||
}
|
||||
// Legacy UI toggles removed.
|
||||
// This method is kept for backwards compatibility with call sites that might expect it,
|
||||
// though the settings are now managed via AppShell.
|
||||
}
|
||||
|
||||
handleReadReceiptsToggle(enabled) {
|
||||
|
||||
Reference in new issue
Block a user