mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
Improve interactions sending from synapse
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user