From fdf6a3223671f9a15d9e6885277322012e98b538 Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 11 Jan 2019 23:17:09 +0100 Subject: [PATCH] disable send Msg to own id in chat rooms --- retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp index 0305ff6c0..f31f8c456 100644 --- a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp +++ b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp @@ -277,7 +277,7 @@ void ChatLobbyDialog::initParticipantsContextMenu(QMenu *contextMnu, QListaddAction(showInPeopleAct); distantChatAct->setEnabled(false); - sendMessageAct->setEnabled(true); + sendMessageAct->setEnabled(false); muteAct->setEnabled(false); muteAct->setCheckable(true); muteAct->setChecked(false); @@ -299,6 +299,7 @@ void ChatLobbyDialog::initParticipantsContextMenu(QMenu *contextMnu, QListisOwnId(gxsid)) { distantChatAct->setEnabled(true); + sendMessageAct->setEnabled(true); votePositiveAct->setEnabled(rsReputations->overallReputationLevel(gxsid) != RsReputations::REPUTATION_LOCALLY_POSITIVE); voteNeutralAct->setEnabled((rsReputations->overallReputationLevel(gxsid) == RsReputations::REPUTATION_LOCALLY_POSITIVE) || (rsReputations->overallReputationLevel(gxsid) == RsReputations::REPUTATION_LOCALLY_NEGATIVE) ); voteNegativeAct->setEnabled(rsReputations->overallReputationLevel(gxsid) != RsReputations::REPUTATION_LOCALLY_NEGATIVE);