mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
fixed registration of event handler
This commit is contained in:
parent
339948a15c
commit
b16c30bc3f
3 changed files with 5 additions and 3 deletions
|
@ -128,8 +128,7 @@ bool p3Peers::FriendsChanged(const RsPeerId& pid,bool add)
|
|||
#endif
|
||||
if(rsEvents)
|
||||
{
|
||||
auto ev = std::make_shared<RsPeerStateChangedEvent>();
|
||||
ev->mSslId = pid;
|
||||
auto ev = std::make_shared<RsPeerStateChangedEvent>(pid);
|
||||
rsEvents->postEvent(ev);
|
||||
}
|
||||
RsServer::notify()->notifyListChange(NOTIFY_LIST_FRIENDS, add? NOTIFY_TYPE_ADD : NOTIFY_TYPE_DEL); // this is meant to disappear
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue