mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-14 08:08:53 -05:00
Added chat status display
This commit is contained in:
parent
7873082d28
commit
1ab5ad0a8e
1 changed files with 4 additions and 0 deletions
|
|
@ -145,6 +145,8 @@ void PopupDistantChatDialog::handleEvent_main_thread(std::shared_ptr<const RsEve
|
|||
getChatWidget()->updateStatusString("%1", tr( "Your partner closed the conversation." ), true );
|
||||
getChatWidget()->blockSending(tr( "Your partner closed the conversation."));
|
||||
|
||||
getChatWidget()->addChatMsg(true, tr("Chat status"), QDateTime::currentDateTime(), QDateTime::currentDateTime()
|
||||
, tr("Your partner closed the conversation."), ChatWidget::MSGTYPE_SYSTEM);
|
||||
setPeerStatus(RsStatusValue::RS_STATUS_OFFLINE) ;
|
||||
break ;
|
||||
|
||||
|
|
@ -173,6 +175,8 @@ void PopupDistantChatDialog::handleEvent_main_thread(std::shared_ptr<const RsEve
|
|||
msg = QObject::tr( "End-to-end encrypted conversation established");
|
||||
getChatWidget()->updateStatusString("%1", msg, true);
|
||||
_status_label->setToolTip(msg);
|
||||
getChatWidget()->addChatMsg(true, tr("Chat status"), QDateTime::currentDateTime(), QDateTime::currentDateTime()
|
||||
, tr("Tunnel is secured. You can talk!"), ChatWidget::MSGTYPE_SYSTEM);
|
||||
getChatWidget()->unblockSending();
|
||||
setPeerStatus(RsStatusValue::RS_STATUS_ONLINE);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue