mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-23 16:39:16 -04:00
gui: chat: hide untouchable context menu actions for own identity
This commit is contained in:
parent
47fc1902af
commit
62ad412914
@ -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…
x
Reference in New Issue
Block a user