Added invite info frame for Friend Request Messages.

This commit is contained in:
defnax 2017-02-07 17:01:36 +01:00
parent 90594bc9a6
commit 9226ccc5ca
6 changed files with 320 additions and 10 deletions

View file

@ -67,6 +67,7 @@ MsgItem::MsgItem(FeedHolder *parent, uint32_t feedId, const std::string &msgId,
expandFrame->hide();
inviteFrame->hide();
updateItemStatic();
updateItem();
@ -119,12 +120,15 @@ void MsgItem::updateItemStatic()
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();
}
}
else