From 964ab8860e93917c93b7c32ea5614a9e8387b301 Mon Sep 17 00:00:00 2001 From: Agustina Aldasoro Date: Fri, 14 Jul 2023 15:32:05 -0300 Subject: [PATCH] feat: add mutual friends in friendship social proto (#158) * feat: add mutual friends in friendship social proto * Change var name * Add BadRequestError * Rename payload --- .../decentraland/social/friendships/friendships.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/proto/decentraland/social/friendships/friendships.proto b/proto/decentraland/social/friendships/friendships.proto index 800b703a..a405f14f 100644 --- a/proto/decentraland/social/friendships/friendships.proto +++ b/proto/decentraland/social/friendships/friendships.proto @@ -78,6 +78,12 @@ message UpdateFriendshipPayload { optional Payload auth_token = 2; } +message MutualFriendsPayload { + User user = 1; + // For internal use only, subject to change. + optional Payload auth_token = 2; +} + message Payload { // For internal use only, subject to change. optional string synapse_token = 1; @@ -106,6 +112,7 @@ message UsersResponse { UnauthorizedError unauthorized_error = 3; ForbiddenError forbidden_error = 4; TooManyRequestsError too_many_requests_error = 5; + BadRequestError bad_request_error = 6; } } @@ -144,6 +151,9 @@ service FriendshipsService { // Get the list of friends for the authenticated user rpc GetFriends(Payload) returns (stream UsersResponse) {} + // Get the list of mutual friends between the authenticated user and the one in the parameter + rpc GetMutualFriends(MutualFriendsPayload) returns (stream UsersResponse) {} + // Get the list of request events for the authenticated user rpc GetRequestEvents(Payload) returns (RequestEventsResponse) {}