Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Improve interactions sending from synapse
Hakan Shehue8c666bb6f25
diff --git a/apps/server/src/services/synapse-service.ts b/apps/server/src/services/synapse-service.tsindex 546cc977..60351dd4 100644--- a/apps/server/src/services/synapse-service.ts+++ b/apps/server/src/services/synapse-service.ts@@ -450,6 +450,7 @@ class SynapseService {this.sendPendingTransactions(socketConnection, userId);this.sendPendingCollaborations(socketConnection, userId);+ this.sendPendingInteractions(socketConnection, userId);}}}@@ -567,6 +568,10 @@ class SynapseService {usersToSend = collaborations.map((c) => c.user_id);}+ if (userIds.includes(event.userId) && !usersToSend.includes(event.userId)) {+ usersToSend.push(event.userId);+ }+for (const userId of usersToSend) {const deviceIds = userDevices.get(userId) ?? [];for (const deviceId of deviceIds) {