fix(mesh): correct rpcClient.call() usage in clear-all button
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1736f6f99e
commit
dbafa12596
@ -232,9 +232,9 @@ async function refreshOutboxCount() {
|
|||||||
async function clearAllMesh() {
|
async function clearAllMesh() {
|
||||||
if (!window.confirm('Clear all mesh peers, messages, and chat history? This cannot be undone.')) return
|
if (!window.confirm('Clear all mesh peers, messages, and chat history? This cannot be undone.')) return
|
||||||
try {
|
try {
|
||||||
await rpcClient('mesh.clear-all')
|
await rpcClient.call({ method: 'mesh.clear-all' })
|
||||||
await mesh.refreshAll()
|
await mesh.refreshAll()
|
||||||
selectedPeer.value = null
|
activeChatPeer.value = null
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Failed to clear mesh:', e)
|
console.error('Failed to clear mesh:', e)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user