mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 14:41:04 -04:00
require signed identity to respond to a signed chat room invite. Avoids "god mode" bug.
This commit is contained in:
parent
49cacc41a1
commit
eea0c64d1c
1 changed files with 11 additions and 2 deletions
|
@ -1085,10 +1085,19 @@ void ChatLobbyWidget::readChatLobbyInvites()
|
||||||
QMessageBox::Question, QMessageBox::Yes,QMessageBox::No, 0);
|
QMessageBox::Question, QMessageBox::Yes,QMessageBox::No, 0);
|
||||||
|
|
||||||
|
|
||||||
QLabel *label = new QLabel(tr("Choose an identity for this chat room:"));
|
QLabel *label ;
|
||||||
GxsIdChooser *idchooser = new GxsIdChooser ;
|
GxsIdChooser *idchooser = new GxsIdChooser ;
|
||||||
idchooser->loadIds(IDCHOOSER_ID_REQUIRED,default_id) ;
|
|
||||||
|
|
||||||
|
if( (*it).lobby_flags & RS_CHAT_LOBBY_FLAGS_PGP_SIGNED )
|
||||||
|
{
|
||||||
|
idchooser->loadIds(IDCHOOSER_ID_REQUIRED | IDCHOOSER_NON_ANONYMOUS,default_id) ;
|
||||||
|
label = new QLabel(tr("Choose a non anonymous identity for this chat room:"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
idchooser->loadIds(IDCHOOSER_ID_REQUIRED,default_id) ;
|
||||||
|
label = new QLabel(tr("Choose an identity for this chat room:"));
|
||||||
|
}
|
||||||
|
|
||||||
QGridLayout* layout = qobject_cast<QGridLayout*>(mb.layout());
|
QGridLayout* layout = qobject_cast<QGridLayout*>(mb.layout());
|
||||||
if (layout) {
|
if (layout) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue