From 0acafebde539264a30dff9b4e407dd0ba988bd6f Mon Sep 17 00:00:00 2001 From: Kevin Szuchet Date: Fri, 17 Jan 2025 13:47:16 -0300 Subject: [PATCH] feat: Only friend requests need id --- .../social_service/v3/social_service_v3.proto | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/proto/decentraland/social_service/v3/social_service_v3.proto b/proto/decentraland/social_service/v3/social_service_v3.proto index b1216445..ec57cbd0 100644 --- a/proto/decentraland/social_service/v3/social_service_v3.proto +++ b/proto/decentraland/social_service/v3/social_service_v3.proto @@ -70,15 +70,8 @@ message PaginatedResponse { int32 page = 2; } - -message Friendship { - string id = 1; - User user = 2; - optional ConnectivityStatus status = 3; -} - -message PaginatedFriendshipsResponse { - repeated Friendship users = 1; +message PaginatedUsersResponse { + repeated User users = 1; PaginatedResponse pagination_data = 2; } @@ -144,10 +137,10 @@ message GetFriendshipStatusResponse { service SocialService { // Get the list of friends for the authenticated user - rpc GetFriends(GetFriendsPayload) returns (PaginatedFriendshipsResponse) {} + rpc GetFriends(GetFriendsPayload) returns (PaginatedUsersResponse) {} // Get the list of mutual friends between the authenticated user and the one in the parameter - rpc GetMutualFriends(GetMutualFriendsPayload) returns (PaginatedFriendshipsResponse) {} + rpc GetMutualFriends(GetMutualFriendsPayload) returns (PaginatedUsersResponse) {} // Get the pending friendship requests for the authenticated user rpc GetPendingFriendshipRequests(GetFriendshipRequestsPayload) returns (PaginatedFriendshipRequestsResponse) {}