Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Improve interactions sending from synapse

Hakan Shehue8c666bb6f25
diff --git a/apps/server/src/services/synapse-service.ts b/apps/server/src/services/synapse-service.ts
index 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) {