From 1ab5ad0a8e4ce5f3aa3859ba1bbb1bc0b0015abb Mon Sep 17 00:00:00 2001 From: defnax <9952056+defnax@users.noreply.github.com> Date: Sat, 6 Dec 2025 22:13:09 +0100 Subject: [PATCH] Added chat status display --- retroshare-gui/src/gui/chat/PopupDistantChatDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retroshare-gui/src/gui/chat/PopupDistantChatDialog.cpp b/retroshare-gui/src/gui/chat/PopupDistantChatDialog.cpp index a27a28f8b..7d258e38f 100644 --- a/retroshare-gui/src/gui/chat/PopupDistantChatDialog.cpp +++ b/retroshare-gui/src/gui/chat/PopupDistantChatDialog.cpp @@ -145,6 +145,8 @@ void PopupDistantChatDialog::handleEvent_main_thread(std::shared_ptrupdateStatusString("%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_ptrupdateStatusString("%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;