diff --git a/packages/server/src/routes/federation.ts b/packages/server/src/routes/federation.ts index 20f66aa1..ae7c7fda 100644 --- a/packages/server/src/routes/federation.ts +++ b/packages/server/src/routes/federation.ts @@ -1690,6 +1690,9 @@ function findOrCreateDmChannel( .run(); } } + // Late-bind: if a FederatedCallEntry exists for this federatedId with null dmChannelId, + // update it now that we have a local channel + connectionManager.lateBindFederatedCall(federatedId, existing.id); return existing.id; } @@ -1715,6 +1718,10 @@ function findOrCreateDmChannel( .run(); } + // Late-bind: if a FederatedCallEntry exists for this federatedId with null dmChannelId, + // update it now that we have a local channel + connectionManager.lateBindFederatedCall(federatedId, channelId); + return channelId; }