diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-09 12:16:51 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-09 12:17:38 +0200 |
| commit | 4ae61dc4e1dcca6ae24131fcd9acc55124e3c0af (patch) | |
| tree | 44fd15f6175ade9b0b884f846dfd9d66e2b3bc80 /packages/meshbay-hub/src/meshbay_hub/static/chat-app-settings.js | |
| parent | 6832df6177ad973ad0e1b4f0a49d7a6da06c6e04 (diff) | |
| download | meshbay-4ae61dc4e1dcca6ae24131fcd9acc55124e3c0af.tar.gz | |
feat: let the operator purge a group's chat (MNP 6.1)
Signed chat_purge from the Chat settings deletes every stored message;
epoch keys and attachments stay. The ack is broadcast so open chat
panels empty.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/chat-app-settings.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/chat-app-settings.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/chat-app-settings.js b/packages/meshbay-hub/src/meshbay_hub/static/chat-app-settings.js index 1eba59a..892c332 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/chat-app-settings.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/chat-app-settings.js @@ -73,6 +73,13 @@ function ChatSettings({ roots, dirs, settings, saveDirectories, transport, </button> <p class="settings-hint">${t('settings_app.chat_rotate_epoch_hint')}</p> </div> + <div class="settings-row" style="margin-top:12px"> + <button class="app-save" disabled=${busy} + onClick=${() => run(() => transport.purgeChat(signFn))}> + ${busy ? t('settings_app.saving') : t('settings_app.chat_purge')} + </button> + <p class="settings-hint">${t('settings_app.chat_purge_hint')}</p> + </div> ${msg && html`<p class="settings-hint">${msg}</p>`} </div> `; |