feat: channel webhooks

This commit is contained in:
Timothy Jaeryang Baek committed 2026-01-09 02:30:15 +04:00
1 parent 48bdb3f266
commit cd296fcf0d
10 files changed
+1012 -12

No files matched your search

+2 -2
View File
@@ -119,8 +119,8 @@
if (type === 'message') {
if ((data?.parent_id ?? null) === null) {
const tempId = data?.temp_id ?? null;
messages = [{ ...data, temp_id: null }, ...messages.filter((m) => m?.temp_id !== tempId)];
const tempId = data?.temp_id ?? null;
messages = [{ ...data, temp_id: null }, ...messages.filter((m) => !tempId || m?.temp_id !== tempId)];
if (typingUsers.find((user) => user.id === event.user.id)) {
typingUsers = typingUsers.filter((user) => user.id !== event.user.id);