Fix friend request pending list

This commit is contained in:
zhaodice
2022-06-17 14:34:30 +08:00
committed by Melledy
parent 359e83596c
commit bddb96e3b2
2 changed files with 16 additions and 9 deletions

View File

@@ -39,15 +39,7 @@ public class PacketGetPlayerFriendListRsp extends BasePacket {
for (Friendship friendship : player.getFriendsList().getFriends().values()) {
proto.addFriendList(friendship.toProto());
}
for (Friendship friendship : player.getFriendsList().getPendingFriends().values()) {
if (friendship.getAskerId() == player.getUid()) {
continue;
}
proto.addAskFriendList(friendship.toProto());
}
this.setData(proto);
}
}