Connection Status

This link mentions verifying the connection status between two users.

How do you query this in Flutter? The only solution I have found is loading the whole following/follower list for one of the users and iterating over it looking for the other user.

Hi @scott

This code should help :

void getFollowInfo() {
    AmityCoreClient.newUserRepository()
        .relationship()
        .user("USER_ID")
        .getFollowInfo()
        .then((otherFollowInfo) => {
              print("${otherFollowInfo.status}")
              
            })
        .onError((error, stackTrace) => {
              //handle error
            });
  }

Thank you,
Amity Support