Improve interactions sending from synapse

This commit is contained in:
Hakan Shehu
2024-11-29 23:54:29 +01:00
parent 2e776648bd
commit e8c666bb6f

View File

@@ -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) {