mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
made the invite system non automatic, because it was confusing and could generate unwanted emails
This commit is contained in:
parent
fa84d1c881
commit
5a4d0f57d1
@ -2608,9 +2608,10 @@ void IdDialog::sendInvite()
|
||||
|
||||
RsGxsId id(ui->lineEdit_KeyId->text().toStdString());
|
||||
|
||||
if ((QMessageBox::question(this, tr("Send invite?"),tr("Do you really want send a invite with your Certificate?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
|
||||
//if ((QMessageBox::question(this, tr("Send invite?"),tr("Do you really want send a invite with your Certificate?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
|
||||
{
|
||||
MessageComposer::sendInvite(id);
|
||||
MessageComposer::sendInvite(id,false);
|
||||
|
||||
ui->inviteFrame->show();
|
||||
ui->inviteButton->setEnabled(false);
|
||||
}
|
||||
|
@ -370,9 +370,9 @@ void MsgItem::sendInvite()
|
||||
if (!rsMail->getMessage(mMsgId, mi))
|
||||
return;
|
||||
|
||||
if ((QMessageBox::question(this, tr("Send invite?"),tr("Do you really want send a invite with your Certificate?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
|
||||
{
|
||||
MessageComposer::sendInvite(mi.rsgxsid_srcId);
|
||||
}
|
||||
//if ((QMessageBox::question(this, tr("Send invite?"),tr("Do you really want send a invite with your Certificate?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
|
||||
//{
|
||||
MessageComposer::sendInvite(mi.rsgxsid_srcId,false);
|
||||
//}
|
||||
|
||||
}
|
||||
|
@ -2775,12 +2775,12 @@ QString MessageComposer::inviteMessage()
|
||||
return tr("Hi,<br>I want to be friends with you on RetroShare.<br>");
|
||||
}
|
||||
|
||||
void MessageComposer::sendInvite(const RsGxsId &to, const QString &/*msg*/, bool autoSend)
|
||||
void MessageComposer::sendInvite(const RsGxsId &to, bool autoSend)
|
||||
{
|
||||
/* create a message */
|
||||
MessageComposer *composer = MessageComposer::newMsg();
|
||||
|
||||
composer->setTitleText(tr("You have a friend invite"));
|
||||
composer->setTitleText(tr("Invite message"));
|
||||
composer->msgFlags |= RS_MSG_USER_REQUEST;
|
||||
|
||||
|
||||
@ -2803,8 +2803,8 @@ void MessageComposer::sendInvite(const RsGxsId &to, const QString &/*msg*/, bool
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//composer->show();
|
||||
else
|
||||
composer->show();
|
||||
|
||||
/* window will destroy itself! */
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ public:
|
||||
static QString recommendMessage();
|
||||
static void recommendFriend(const std::set <RsPeerId> &sslIds, const RsPeerId &to = RsPeerId(), const QString &msg = "", bool autoSend = false);
|
||||
static void sendConnectAttemptMsg(const RsPgpId &gpgId, const RsPeerId &sslId, const QString &sslName);
|
||||
static void sendInvite(const RsGxsId &to = RsGxsId(), const QString &msg = "", bool autoSend = true);
|
||||
static void sendInvite(const RsGxsId &to, bool autoSend);
|
||||
#ifdef UNUSED_CODE
|
||||
static void sendChannelPublishKey(RsGxsChannelGroup &group);
|
||||
static void sendForumPublishKey(RsGxsForumGroup &group);
|
||||
|
@ -789,9 +789,9 @@ void MessageWidget::sendInvite()
|
||||
if (!rsMail->getMessage(currMsgId, mi))
|
||||
return;
|
||||
|
||||
if ((QMessageBox::question(this, tr("Send invite?"),tr("Do you really want send a invite with your Certificate?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
|
||||
{
|
||||
MessageComposer::sendInvite(mi.rsgxsid_srcId);
|
||||
}
|
||||
//if ((QMessageBox::question(this, tr("Send invite?"),tr("Do you really want send a invite with your Certificate?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
|
||||
//{
|
||||
MessageComposer::sendInvite(mi.rsgxsid_srcId,false);
|
||||
//}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user