mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-23 06:14:50 -04:00
gui: chat: hide untouchable context menu actions for own identity
This commit is contained in:
parent
47fc1902af
commit
62ad412914
1 changed files with 10 additions and 0 deletions
|
@ -319,6 +319,16 @@ void ChatLobbyDialog::initParticipantsContextMenu(QMenu *contextMnu, QList<RsGxs
|
|||
if (!gxsid.isNull())
|
||||
copyIdAct->setData(QString::fromStdString(gxsid.toStdString()));
|
||||
|
||||
if (!gxsid.isNull() && rsIdentity->isOwnId(gxsid))
|
||||
{
|
||||
distantChatAct->setVisible(false);
|
||||
sendMessageAct->setVisible(false);
|
||||
muteAct->setVisible(false);
|
||||
votePositiveAct->setVisible(false);
|
||||
voteNeutralAct->setVisible(false);
|
||||
voteNegativeAct->setVisible(false);
|
||||
}
|
||||
|
||||
if(!gxsid.isNull() && !rsIdentity->isOwnId(gxsid))
|
||||
{
|
||||
distantChatAct->setEnabled(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue