1
This commit is contained in:
parent
b2eda6cbcb
commit
bc0e7ef7e0
@ -52,10 +52,13 @@ struct QueryUserStatusTask
|
||||
struct RecommandFriendTask
|
||||
{
|
||||
AsyncTaskContext context;
|
||||
std::map<std::string, cs::MFUserInfo> recommand_friends;
|
||||
|
||||
void Done()
|
||||
{
|
||||
if (context.IsValid()) {
|
||||
cs::SMRecommandFriend msg;
|
||||
context.hum->SendMsg(msg);
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -154,6 +157,9 @@ void AsyncTaskMgr::_SS_IM_RandomUsersResponse(f8::MsgHdr& hdr, const ss::SS_IM_R
|
||||
{
|
||||
RecommandFriendTask* task = GetRecommandFriendTask(msg.context().seqid());
|
||||
if (task) {
|
||||
for (auto& user_info : msg.user_infos()) {
|
||||
task->recommand_friends[user_info.base_data().account_id()] = user_info;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user