mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 14:10:54 -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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msgInfo.msgflags & RS_MSG_USER_REQUEST){
|
if ((msgInfo.msgflags & RS_MSG_USER_REQUEST) && msgInfo.rsgxsid_srcId.isNull()){
|
||||||
ui.inviteFrame->show();
|
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 {
|
} else {
|
||||||
ui.inviteFrame->hide();
|
ui.inviteFrame->hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue