mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-12 12:18:55 +02:00
fix(subscribers): use composite key (user_id + user_type) in subscriber:removed WS handler
Consistent with subscriber:added handler. Prevents removing a member subscriber when an agent with the same UUID is unsubscribed (or vice versa). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -353,7 +353,7 @@ export function IssueDetail({ issueId, onDelete }: IssueDetailProps) {
|
||||
useCallback((payload: unknown) => {
|
||||
const p = payload as SubscriberRemovedPayload;
|
||||
if (p.issue_id !== id) return;
|
||||
setSubscribers((prev) => prev.filter((s) => s.user_id !== p.user_id));
|
||||
setSubscribers((prev) => prev.filter((s) => !(s.user_id === p.user_id && s.user_type === p.user_type)));
|
||||
}, [id]),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user