mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
- derived new class of PopupChatDialog to handle chat lobbies
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-ChatLobby@4694 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f4e41b3247
commit
6c93253050
11 changed files with 209 additions and 913 deletions
|
@ -684,7 +684,8 @@ void PopupChatDialog::sendChat()
|
|||
std::cout << "PopupChatDialog:sendChat " << std::endl;
|
||||
#endif
|
||||
|
||||
if (rsMsgs->sendPrivateChat(dialogId, msg)) {
|
||||
if (sendPrivateChat(msg))
|
||||
{
|
||||
QDateTime currentTime = QDateTime::currentDateTime();
|
||||
addChatMsg(false, QString::fromUtf8(rsPeers->getPeerName(ownId).c_str()), currentTime, currentTime, QString::fromStdWString(msg), TYPE_NORMAL);
|
||||
}
|
||||
|
@ -697,6 +698,11 @@ void PopupChatDialog::sendChat()
|
|||
setFont();
|
||||
}
|
||||
|
||||
bool PopupChatDialog::sendPrivateChat(const std::wstring& msg)
|
||||
{
|
||||
return rsMsgs->sendPrivateChat(dialogId, msg) ;
|
||||
}
|
||||
|
||||
/**
|
||||
Toggles the ToolBox on and off, changes toggle button text
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue