Merge pull request #41 from defnax/chatstatus

Added to show refused in distant chat
This commit is contained in:
csoler 2025-12-07 18:38:17 +01:00 committed by GitHub
commit 7fff0c1894
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,6 +124,8 @@ void PopupDistantChatDialog::handleEvent_main_thread(std::shared_ptr<const RsEve
_status_label->setToolTip(msg); _status_label->setToolTip(msg);
getChatWidget()->updateStatusString("%1", msg, true); getChatWidget()->updateStatusString("%1", msg, true);
getChatWidget()->blockSending(tr( "The distant peer refuses distant chat." )); getChatWidget()->blockSending(tr( "The distant peer refuses distant chat." ));
getChatWidget()->addChatMsg(true, tr("Chat status"), QDateTime::currentDateTime(), QDateTime::currentDateTime()
, tr("The distant peer refuses distant chat."), ChatWidget::MSGTYPE_SYSTEM);
setPeerStatus(RsStatusValue::RS_STATUS_OFFLINE); setPeerStatus(RsStatusValue::RS_STATUS_OFFLINE);
break ; break ;