mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-16 19:28:48 -04:00
Fix to hide the Invite Button when its a Friend Request Message
This commit is contained in:
parent
43d953b992
commit
c4b6c34dbe
1 changed files with 11 additions and 5 deletions
|
@ -541,8 +541,14 @@ void MessageWidget::fill(const std::string &msgId)
|
|||
return;
|
||||
}
|
||||
|
||||
if (msgInfo.msgflags & RS_MSG_USER_REQUEST){
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue