1
This commit is contained in:
parent
2077df9c13
commit
4af9244511
@ -371,11 +371,6 @@ void Player::_CMFriendAddBlack(f8::MsgHdr& hdr, const cs::CMFriendAddBlack& msg)
|
|||||||
Friend* p = GetFriendById(msg.user_info().base_data().account_id());
|
Friend* p = GetFriendById(msg.user_info().base_data().account_id());
|
||||||
if (p) {
|
if (p) {
|
||||||
if (!GetBlackListById(msg.user_info().base_data().account_id())) {
|
if (!GetBlackListById(msg.user_info().base_data().account_id())) {
|
||||||
{
|
|
||||||
cs::SMDeleteFriendNotify notifymsg;
|
|
||||||
notifymsg.add_user_list(msg.user_info().base_data().account_id());
|
|
||||||
SendMsg(notifymsg);
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
cs::SMAddBlackListNotify notifymsg;
|
cs::SMAddBlackListNotify notifymsg;
|
||||||
auto user_info = notifymsg.add_user_infos();
|
auto user_info = notifymsg.add_user_infos();
|
||||||
@ -383,8 +378,8 @@ void Player::_CMFriendAddBlack(f8::MsgHdr& hdr, const cs::CMFriendAddBlack& msg)
|
|||||||
TypeConvert::Convert(p->temp_custom_data, *user_info->mutable_temp_custom_data());
|
TypeConvert::Convert(p->temp_custom_data, *user_info->mutable_temp_custom_data());
|
||||||
SendMsg(notifymsg);
|
SendMsg(notifymsg);
|
||||||
}
|
}
|
||||||
friend_hash_.erase(p->base_data.account_id);
|
|
||||||
black_hash_[p->base_data.account_id] = p;
|
black_hash_[p->base_data.account_id] = p;
|
||||||
|
RemoveFriend(p->base_data.account_id, true);
|
||||||
MarkDirty();
|
MarkDirty();
|
||||||
}
|
}
|
||||||
ShowErrorMsg("成功添加到黑名单");
|
ShowErrorMsg("成功添加到黑名单");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user