mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-08-07 17:22:57 +02:00
feat(contacts): name-based blocking, fix CSS breakpoint
- New blocked_names table for blocking bots without known public_key - get_blocked_contact_names() returns union of pubkey-blocked + name-blocked - POST /api/contacts/block-name endpoint for name-based blocking - GET /api/contacts/blocked-names-list for management UI - Block button always visible in chat (falls back to name-based block) - Blocked Names section shown in Existing Contacts Blocked filter - CSS breakpoint for icon-only buttons: 768px → 428px (iPhone-sized) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -149,6 +149,12 @@ CREATE TABLE IF NOT EXISTS blocked_contacts (
|
||||
created_at TEXT NOT NULL DEFAULT (datetime('now'))
|
||||
);
|
||||
|
||||
-- Blocked names (for bots/contacts without known public_key)
|
||||
CREATE TABLE IF NOT EXISTS blocked_names (
|
||||
name TEXT PRIMARY KEY,
|
||||
created_at TEXT NOT NULL DEFAULT (datetime('now'))
|
||||
);
|
||||
|
||||
-- ============================================================
|
||||
-- Indexes
|
||||
-- ============================================================
|
||||
|
||||
Reference in New Issue
Block a user