This commit is contained in:
aozhiwei 2020-06-24 16:10:37 +08:00
parent 09d8bbf366
commit c1eeca2c67

View File

@ -482,6 +482,7 @@ void Player::_CMGroupRename(f8::MsgHdr& hdr, const cs::CMGroupRename& msg)
void Player::_SS_IM_FriendAgreeRequest(f8::MsgHdr& hdr, const ss::SS_IM_FriendAgreeRequest& msg)
{
if (!GetFriendById(msg.context().user_info().base_data().account_id())) {
if (CanAddFriend(msg.context().user_info().base_data().account_id())) {
Friend* friendobj = new Friend;
TypeConvert::Convert(msg.context().user_info().base_data(), friendobj->base_data);
TypeConvert::Convert(msg.context().user_info().temp_custom_data(), friendobj->temp_custom_data);
@ -491,6 +492,7 @@ void Player::_SS_IM_FriendAgreeRequest(f8::MsgHdr& hdr, const ss::SS_IM_FriendAg
}
QueryUserOnline({friendobj->base_data.account_id});
}
}
RemoveHandledApply();
f8::MsgHdr* hdr_copy = hdr.Clone();
ss::SS_IM_FriendAgreeRequest* msg_copy = new ss::SS_IM_FriendAgreeRequest;