好友:拉黑对方聊天也屏蔽
This commit is contained in:
@@ -149,6 +149,11 @@ export async function increaseFrdCnt(role1: RoleType, role2: RoleType, originalF
|
||||
return '';
|
||||
}
|
||||
|
||||
export async function getFriendRelationType(myRoleId: string, roleId: string) {
|
||||
let myFriendRelation = await FriendRelationModel.findFriendByRole(roleId, POPULATE_TYPE.NOT);
|
||||
return getRecommendType(myFriendRelation, roleId, myRoleId);
|
||||
}
|
||||
|
||||
export function getRecommendType(myFriendRelation: FriendRelationType, myRoleId: string, roleId: string) {
|
||||
if(myRoleId == roleId) {
|
||||
return FRIEND_RELATION_TYPE.MYSELF;
|
||||
|
||||
Reference in New Issue
Block a user