mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix to hide the Invite Button when its a Friend Request Message
This commit is contained in:
parent
43d953b992
commit
c4b6c34dbe
@ -541,11 +541,17 @@ void MessageWidget::fill(const std::string &msgId)
|
||||
return;
|
||||
}
|
||||
|
||||
if (msgInfo.msgflags & RS_MSG_USER_REQUEST){
|
||||
ui.inviteFrame->show();
|
||||
} else {
|
||||
ui.inviteFrame->hide();
|
||||
}
|
||||
if ((msgInfo.msgflags & RS_MSG_USER_REQUEST) && msgInfo.rsgxsid_srcId.isNull()){
|
||||
ui.inviteFrame->show();
|
||||
ui.sendInviteButton->hide();
|
||||
ui.infoLabel->setText(tr("You got an invite to make friend! You may accept this request."));
|
||||
} else if ((msgInfo.msgflags & RS_MSG_USER_REQUEST) && (!msgInfo.rsgxsid_srcId.isNull())){
|
||||
ui.inviteFrame->show();
|
||||
ui.sendInviteButton->show();
|
||||
ui.infoLabel->setText(tr("You got an invite to make friend! You may accept this request and send your own Certificate back"));
|
||||
} else {
|
||||
ui.inviteFrame->hide();
|
||||
}
|
||||
|
||||
const std::list<FileInfo> &recList = msgInfo.files;
|
||||
std::list<FileInfo>::const_iterator it;
|
||||
|
Loading…
Reference in New Issue
Block a user