mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 11:01:22 -04:00
fixed display of message links in composer window and message window. Still takes several attempts to display correctly.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7352 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a946504bb5
commit
3766449bec
4 changed files with 51 additions and 16 deletions
|
@ -576,8 +576,8 @@ bool RetroShareLink::createMessage(const RsGxsId& peerId, const QString& subject
|
|||
|
||||
_hash = QString::fromStdString(peerId.toStdString());
|
||||
|
||||
//PeerDefs::rsidFromId(peerId, &_name);
|
||||
_name = QString::fromStdString("GXS_id("+peerId.toStdString()+")") ;
|
||||
PeerDefs::rsidFromId(peerId, &_name);
|
||||
//_name = QString::fromStdString("GXS_id("+peerId.toStdString()+")") ;
|
||||
// do something better here!!
|
||||
_subject = subject;
|
||||
|
||||
|
@ -1543,6 +1543,12 @@ static void processList(const QStringList &list, const QString &textSingular, co
|
|||
|
||||
if(!gxs_id.isNull() && rsIdentity->getIdDetails(gxs_id,gxs_details))
|
||||
{
|
||||
if(gxs_details.mIsOwnId)
|
||||
{
|
||||
QMessageBox::warning(NULL,QString("Cannot send message to yourself"),QString("This identity is owned by you. You wouldn't want to send yourself a message right?"));
|
||||
break ;
|
||||
}
|
||||
|
||||
MessageComposer *msg = MessageComposer::newMsg();
|
||||
msg->addRecipient(MessageComposer::TO, gxs_id) ;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue