Fixed the Msg Feed Item too

This commit is contained in:
defnax 2020-12-20 19:54:25 +01:00
parent c4b6c34dbe
commit 54f040c17a
3 changed files with 22 additions and 17 deletions

View File

@ -117,19 +117,28 @@ void MsgItem::updateItemStatic()
if (!mIsHome)
{
if (mi.msgflags & RS_MSG_USER_REQUEST)
{
title = QString::fromUtf8(mi.title.c_str()) + " " + tr("from") + " " + srcName;
replyButton->setText(tr("Reply to invite"));
subjectLabel->hide();
inviteFrame->show();
}
else
{
title = tr("Message From") + ": " + srcName;
sendinviteButton->hide();
inviteFrame->hide();
}
if ((mi.msgflags & RS_MSG_USER_REQUEST) && (!mi.rsgxsid_srcId.isNull()))
{
title = QString::fromUtf8(mi.title.c_str()) + " " + tr("from") + " " + srcName;
replyButton->setText(tr("Reply to invite"));
subjectLabel->hide();
inviteFrame->show();
}
else if ((mi.msgflags & RS_MSG_USER_REQUEST) && mi.rsgxsid_srcId.isNull())
{
title = QString::fromUtf8(mi.title.c_str()) + " " + " " + srcName;
subjectLabel->hide();
inviteFrame->show();
infoLabel->setText(tr("This message invites you to make friend! You may accept this request."));
sendinviteButton->hide();
replyButton->hide();
}
else
{
title = tr("Message From") + ": " + srcName;
sendinviteButton->hide();
inviteFrame->hide();
}
}
else
{

View File

@ -161,10 +161,6 @@
<property name="text">
<string>Reply Message</string>
</property>
<property name="icon">
<iconset>
<normaloff>:/images/mail_reply.png</normaloff>:/images/mail_reply.png</iconset>
</property>
</widget>
</item>
<item>