mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-12 07:59:29 -05: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
@ -1085,10 +1085,19 @@ void ChatLobbyWidget::readChatLobbyInvites()
|
||||
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 ;
|
||||
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());
|
||||
if (layout) {
|
||||
|
Loading…
Reference in New Issue
Block a user