Skip to content

Commit 6d7dd8f

Browse files
JSKittyclaude
andcommitted
fix: filter blocked users from invite and create group dialogs
Blocked users were showing in the "Invite Member" and "Create Group" member selection lists despite being blocked. The is_blocked property was already available on every profile object — just not checked. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c073a53 commit 6d7dd8f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10242,6 +10242,7 @@ async function openInviteMemberToGroup(chat) {
1024210242
const availableContacts = arrProfiles.filter(p => {
1024310243
if (!p || !p.id || p.id === mine) return false;
1024410244
if (currentMembers.includes(p.id)) return false;
10245+
if (p.is_blocked) return false;
1024510246

1024610247
if (filter) {
1024710248
const name = (p.nickname || p.name || '').toLowerCase();
@@ -11942,6 +11943,7 @@ function renderCreateGroupList(filterText = '') {
1194211943
for (const p of sortedProfiles) {
1194311944
if (!p || !p.id) continue;
1194411945
if (p.id === mine) continue;
11946+
if (p.is_blocked) continue;
1194511947

1194611948
// Filter by nickname/name/npub (use extracted npub if input is a profile URL)
1194711949
const name = p.nickname || p.name || '';

0 commit comments

Comments
 (0)