Skip to content

Commit

Permalink
feat: Only friend requests need id
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinszuchet committed Jan 17, 2025
1 parent d94cf9b commit 0acafeb
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions proto/decentraland/social_service/v3/social_service_v3.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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) {}
Expand Down

0 comments on commit 0acafeb

Please sign in to comment.