mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
changed lobby to char room in chat system msgs
This commit is contained in:
parent
8eae3744dc
commit
a00d2c912c
@ -1441,7 +1441,7 @@ bool DistributedChatService::acceptLobbyInvite(const ChatLobbyId& lobby_id,const
|
|||||||
item->lobby_id = entry.lobby_id ;
|
item->lobby_id = entry.lobby_id ;
|
||||||
item->msg_id = 0 ;
|
item->msg_id = 0 ;
|
||||||
item->parent_msg_id = 0 ;
|
item->parent_msg_id = 0 ;
|
||||||
item->nick = "Lobby management" ;
|
item->nick = "Chat room management" ;
|
||||||
item->message = std::string("Welcome to chat lobby") ;
|
item->message = std::string("Welcome to chat lobby") ;
|
||||||
item->PeerId(entry.virtual_peer_id) ;
|
item->PeerId(entry.virtual_peer_id) ;
|
||||||
item->chatFlags = RS_CHAT_FLAG_PRIVATE | RS_CHAT_FLAG_LOBBY ;
|
item->chatFlags = RS_CHAT_FLAG_PRIVATE | RS_CHAT_FLAG_LOBBY ;
|
||||||
|
@ -790,12 +790,12 @@ void ChatLobbyDialog::displayLobbyEvent(int event_type, const RsGxsId& gxs_id, c
|
|||||||
{
|
{
|
||||||
case RS_CHAT_LOBBY_EVENT_PEER_LEFT:
|
case RS_CHAT_LOBBY_EVENT_PEER_LEFT:
|
||||||
qsParticipant=gxs_id;
|
qsParticipant=gxs_id;
|
||||||
ui.chatWidget->addChatMsg(true, tr("Lobby management"), QDateTime::currentDateTime(), QDateTime::currentDateTime(), tr("%1 has left the room.").arg(RsHtml::plainText(name)), ChatWidget::MSGTYPE_SYSTEM);
|
ui.chatWidget->addChatMsg(true, tr("Chat room management"), QDateTime::currentDateTime(), QDateTime::currentDateTime(), tr("%1 has left the room.").arg(RsHtml::plainText(name)), ChatWidget::MSGTYPE_SYSTEM);
|
||||||
emit peerLeft(id()) ;
|
emit peerLeft(id()) ;
|
||||||
break;
|
break;
|
||||||
case RS_CHAT_LOBBY_EVENT_PEER_JOINED:
|
case RS_CHAT_LOBBY_EVENT_PEER_JOINED:
|
||||||
qsParticipant=gxs_id;
|
qsParticipant=gxs_id;
|
||||||
ui.chatWidget->addChatMsg(true, tr("Lobby management"), QDateTime::currentDateTime(), QDateTime::currentDateTime(), tr("%1 joined the room.").arg(RsHtml::plainText(name)), ChatWidget::MSGTYPE_SYSTEM);
|
ui.chatWidget->addChatMsg(true, tr("Chat room management"), QDateTime::currentDateTime(), QDateTime::currentDateTime(), tr("%1 joined the room.").arg(RsHtml::plainText(name)), ChatWidget::MSGTYPE_SYSTEM);
|
||||||
emit peerJoined(id()) ;
|
emit peerJoined(id()) ;
|
||||||
break;
|
break;
|
||||||
case RS_CHAT_LOBBY_EVENT_PEER_STATUS:
|
case RS_CHAT_LOBBY_EVENT_PEER_STATUS:
|
||||||
@ -816,7 +816,7 @@ void ChatLobbyDialog::displayLobbyEvent(int event_type, const RsGxsId& gxs_id, c
|
|||||||
|
|
||||||
QString newname= getParticipantName(RsGxsId(str.toStdString())) ;
|
QString newname= getParticipantName(RsGxsId(str.toStdString())) ;
|
||||||
|
|
||||||
ui.chatWidget->addChatMsg(true, tr("Lobby management"), QDateTime::currentDateTime(),
|
ui.chatWidget->addChatMsg(true, tr("Chat room management"), QDateTime::currentDateTime(),
|
||||||
QDateTime::currentDateTime(),
|
QDateTime::currentDateTime(),
|
||||||
tr("%1 changed his name to: %2").arg(RsHtml::plainText(name)).arg(RsHtml::plainText(newname)),
|
tr("%1 changed his name to: %2").arg(RsHtml::plainText(name)).arg(RsHtml::plainText(newname)),
|
||||||
ChatWidget::MSGTYPE_SYSTEM);
|
ChatWidget::MSGTYPE_SYSTEM);
|
||||||
|
Loading…
Reference in New Issue
Block a user