question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should be able to add friends from a user’s profile, but the friends page is where you accept requests and see you friends list.

Relevant protobuf definitions from api.proto:

syntax = "proto3";

package org.couchers.api.core;

import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/empty.proto";

service API {
  ...

  rpc SendFriendRequest(SendFriendRequestReq) returns (google.protobuf.Empty);

  rpc ListFriendRequests(google.protobuf.Empty) returns (ListFriendRequestsRes);

  rpc ListFriends(google.protobuf.Empty) returns (ListFriendsRes);

  rpc RespondFriendRequest(RespondFriendRequestReq) returns (google.protobuf.Empty);

  rpc CancelFriendRequest(CancelFriendRequestReq) returns (google.protobuf.Empty);

  ...
  }
}

...

message SendFriendRequestReq {
  uint64 user_id = 1;
}

message FriendRequest {
  uint64 friend_request_id = 1;

  enum FriendRequestStatus {
    // these are the only two states that a user will see
    PENDING = 0;
    ACCEPTED = 1;
  }

  FriendRequestStatus state = 2;

  uint64 user_id = 3;
}

message RespondFriendRequestReq {
  uint64 friend_request_id = 1;

  bool accept = 2;
}

message CancelFriendRequestReq {
  uint64 friend_request_id = 1;
}

message ListFriendRequestsRes {
  repeated FriendRequest sent = 1;
  repeated FriendRequest received = 2;
}

message ListFriendsRes {
  repeated uint64 user_ids = 1;
}

...

To-do:

  • SendFriendRequest
    • implementation
    • tests
  • ListFriendRequests
  • ListFriends
  • RespondFriendRequest
  • CancelFriendRequest

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
darrenvongcommented, Dec 6, 2020

I see, doesn’t look like there’s even a mid-fi design for this yet? Might have to roll along what it looks like on the alpha as a starting point

0reactions
amdwitcommented, Dec 13, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Friends (@friends) • Instagram photos and videos
Friends. Official Friends Instagram account. Now streaming on @hbomax. linktr.ee/friends. 1,295 posts. 11.8M followers. 32 following.
Read more >
Log into Facebook
Log into Facebook to start sharing and connecting with your friends, family, and people you know.
Read more >
The Friendship Page ..for every friendship!
Celebrate friendship with the largest friendship site: friendship quotes, poetry, chat, pen-pals, philosophy, advice, songs and more!
Read more >
The Original Friends Site
About the Friends Reunion! Tour TV Sites · Friends videos! || Other Friends items || Tour Manhattan "Friends" Sites!
Read more >
What's The "Friends" Page On Snapchat? The New Feature ...
29, the app rolled out its new "Friends" page, which users are able to access when they swipe left from the initial camera...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found