mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
bug corrections
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-ChatLobby@4712 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0086e182ec
commit
816a477806
3 changed files with 21 additions and 6 deletions
|
@ -1303,11 +1303,11 @@ bool p3ChatService::recvLobbyChat(RsChatLobbyMsgItem *item)
|
|||
for(std::set<std::string>::const_iterator it(lobby.participating_friends.begin());it!=lobby.participating_friends.end();++it)
|
||||
if((*it)!=item->PeerId() && mLinkMgr->isOnline(*it))
|
||||
{
|
||||
RsChatLobbyMsgItem *item = new RsChatLobbyMsgItem(*item) ; // copy almost everything
|
||||
RsChatLobbyMsgItem *item2 = new RsChatLobbyMsgItem(*item) ; // copy almost everything
|
||||
|
||||
item->PeerId(*it) ;
|
||||
item2->PeerId(*it) ;
|
||||
|
||||
sendItem(item);
|
||||
sendItem(item2);
|
||||
}
|
||||
return true ;
|
||||
}
|
||||
|
@ -1318,7 +1318,7 @@ bool p3ChatService::sendLobbyChat(const std::wstring& msg, const ChatLobbyId& lo
|
|||
|
||||
std::cerr << "Sending chat lobby message to lobby " << lobby_id << std::endl;
|
||||
std::cerr << "msg:" << std::endl;
|
||||
std::cerr << msg.c_str() << std::endl;
|
||||
std::wcerr << msg << std::endl;
|
||||
|
||||
// get a pointer to the info for that chat lobby.
|
||||
//
|
||||
|
@ -1489,6 +1489,9 @@ bool p3ChatService::acceptLobbyInvite(const ChatLobbyId& lobby_id)
|
|||
|
||||
rsicontrol->getNotify().notifyListChange(NOTIFY_LIST_PRIVATE_INCOMING_CHAT, NOTIFY_TYPE_ADD);
|
||||
|
||||
// send AKN item
|
||||
|
||||
sendLobbyChat(L"[...] joined the lobby",lobby_id) ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue