fix: finish menu redesign

This commit is contained in:
Audric Ackermann 2022-08-19 12:00:10 +10:00
parent 542c704b64
commit 75ce27e602
3 changed files with 5 additions and 7 deletions

View file

@ -327,7 +327,7 @@
"ByUsingThisService...": "By using this service, you agree to our <a href=\"https://getsession.org/terms-of-service \">Terms of Service</a> and <a href=\"https://getsession.org/privacy-policy\" target=\"_blank\">Privacy Policy</a>",
"beginYourSession": "Begin your Session.",
"welcomeToYourSession": "Welcome to your Session",
"searchFor...": "Search for messages or conversations",
"searchFor...": "Search conversations and contacts",
"searchForContactsOnly": "Search for contacts",
"enterSessionID": "Enter Session ID",
"enterSessionIDOfRecipient": "Enter your contact's Session ID or ONS",

View file

@ -80,11 +80,9 @@ export const OverlayClosedGroup = () => {
let sharedWithResults: Array<string> = [];
if (searchResults && searchResults.contactsAndGroups.length) {
const privateSearchResults = searchResults.contactsAndGroups.filter(convo => convo.isPrivate);
sharedWithResults = privateContactsPubkeys.filter(m =>
privateSearchResults.find(convo => convo.id === m)
);
sharedWithResults = searchResults.contactsAndGroups
.filter(convo => convo.isPrivate)
.map(convo => convo.id);
}
const contactsToRender = isSearch ? sharedWithResults : privateContactsPubkeys;

View file

@ -80,7 +80,7 @@ export const OverlayCommunity = () => {
<SessionJoinableRooms onRoomClicked={closeOverlay} />
{groupUrl && (
<SessionButton
buttonColor={SessionButtonColor.White}
buttonColor={SessionButtonColor.Green}
buttonType={SessionButtonType.BrandOutline}
text={buttonText}
onClick={onEnterPressed}