feat(social): broadcast friend_request_sent on local request creation

This commit is contained in:
Jannis Braun
2026-04-25 22:15:57 +02:00
parent bf13e2a223
commit 1ad1fd1b0c
2 changed files with 23 additions and 0 deletions
+5
View File
@@ -103,6 +103,11 @@ async function handleLocalFriendRequest(
request: friendRequestPayload,
});
connectionManager.sendToUser(request.userId, {
type: 'friend_request_sent',
request: friendRequestPayload,
});
// Federation relay: notify the target user's home instance
const fromIdentity = {
homeUserId: sender.homeUserId || request.userId,