mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 03:42:26 +00:00
[ui] Fix DM tab blank shell and harden profile modal tests
This commit is contained in:
1 parent
ee8569a99b
commit
0af7de6c07
11 files changed
+356
-48
No files matched your search
@@ -14,6 +14,26 @@ export class ProfileDirectMessageActions {
|
||||
this.controller = controller;
|
||||
}
|
||||
|
||||
getDmPrivacySettingsSnapshot(...args) {
|
||||
return this.controller.getDmPrivacySettingsSnapshot(...args);
|
||||
}
|
||||
|
||||
persistDmPrivacySettings(...args) {
|
||||
return this.controller.persistDmPrivacySettings(...args);
|
||||
}
|
||||
|
||||
syncDmPrivacySettingsUi(...args) {
|
||||
return this.controller.syncDmPrivacySettingsUi(...args);
|
||||
}
|
||||
|
||||
focusMessageComposer(...args) {
|
||||
return this.controller.focusMessageComposer(...args);
|
||||
}
|
||||
|
||||
setDirectMessageRecipient(...args) {
|
||||
return this.controller.setDirectMessageRecipient(...args);
|
||||
}
|
||||
|
||||
handleReadReceiptsToggle(enabled) {
|
||||
this.persistDmPrivacySettings({
|
||||
readReceiptsEnabled: Boolean(enabled),
|
||||
@@ -819,12 +839,12 @@ export class ProfileDirectMessageActions {
|
||||
}
|
||||
|
||||
setDmRelayPreferencesStatus(message = "") {
|
||||
if (!(this.profileMessagesRelayStatus instanceof HTMLElement)) {
|
||||
if (!(this.controller.renderer.profileMessagesRelayStatus instanceof HTMLElement)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const text = typeof message === "string" ? message.trim() : "";
|
||||
this.profileMessagesRelayStatus.textContent = text;
|
||||
this.controller.renderer.profileMessagesRelayStatus.textContent = text;
|
||||
}
|
||||
|
||||
populateDmRelayPreferences() {
|
||||
|
||||
Reference in new issue
Block a user