mirror of
https://gitee.com/Zhaoxin59/my-chat_-client.git
synced 2026-02-14 00:51:48 +08:00
Added the function of obtaining user information on the network
This commit is contained in:
@ -149,4 +149,18 @@ namespace model
|
||||
netClient.getMyself(loginSessionId);
|
||||
}
|
||||
|
||||
UserInfo* DataCenter::getMyselfsync()
|
||||
{
|
||||
return myself;
|
||||
}
|
||||
|
||||
void DataCenter::resetMyself(std::shared_ptr<bite_im::GetUserInfoRsp> resp)
|
||||
{
|
||||
if (myself == nullptr) {
|
||||
myself = new UserInfo();
|
||||
}
|
||||
const bite_im::UserInfo& userInfo = resp->userInfo();
|
||||
myself->load(userInfo);
|
||||
}
|
||||
|
||||
} //end namespace model
|
||||
|
||||
Reference in New Issue
Block a user