mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed MsgFeedItem for encrypted distant msgs
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6662 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4c87eb0781
commit
ff67c7eea4
@ -129,6 +129,9 @@ void MsgItem::updateItemStatic()
|
||||
titleLabel->setText(title);
|
||||
subjectLabel->setText(QString::fromStdWString(mi.title));
|
||||
|
||||
if(mi.msgflags & RS_MSG_ENCRYPTED)
|
||||
msgLabel->setText(RsHtml().formatText(NULL, tr("[Encrypted message]"), RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS));
|
||||
else
|
||||
msgLabel->setText(RsHtml().formatText(NULL, QString::fromStdWString(mi.msg), RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS));
|
||||
|
||||
std::list<FileInfo>::iterator it;
|
||||
@ -144,6 +147,9 @@ void MsgItem::updateItemStatic()
|
||||
|
||||
playButton->setEnabled(false);
|
||||
|
||||
if(mi.msgflags & RS_MSG_ENCRYPTED)
|
||||
replyButton->setEnabled(false) ;
|
||||
|
||||
if (mIsHome)
|
||||
{
|
||||
/* disable buttons */
|
||||
|
Loading…
Reference in New Issue
Block a user