fix: clean up redundant regex guard and differentiate copy icons

This commit is contained in:
Jannis Braun
2026-03-20 22:23:15 +01:00
parent 720a3c4553
commit f7d388c9a8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1103,7 +1103,7 @@ function handleMarkUnread(event: Record<string, unknown>, userId: string): void
const channelId = event.channelId as string;
const messageId = event.messageId as string;
if (!channelId || !messageId) return;
if (!/^\d+$/.test(messageId) && messageId !== '0') return;
if (!/^\d+$/.test(messageId)) return;
// Validate channel membership
const spaceId = getChannelSpaceId(channelId);