Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Hide Mediator connection from contact list. #605

Merged
merged 4 commits into from
Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions core/App/localization/pt-br/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ const translation = {
"ContactRemoved": "Contato removido"
},
"WhatAreContacts": {
"Title": "What are Contacts? (PT-BR)",
"Preamble": "Adding organizations as a Contact will allow you to: (PT-BR)",
"ListItemCredentialUpdates": "Get updates to credentials issued by this organization (PT-BR)",
"ListItemNewCredentials": "Get offered new credentials (PT-BR)",
"ListItemProofRequest": "Fast-track proof requests (PT-BR)",
"RemoveContacts": "You can always remove Contacts at any time from your (PT-BR)",
"ContactsLink": "Contacts list (PT-BR)",
"ContactSharing": "Use of your credentials is never shared with your Contacts. (PT-BR)"
"Title": "O que são Contatos?",
"Preamble": "Adicionar organizações como um Contato irá possibilitar que você:",
"ListItemCredentialUpdates": "Receba atualizações de credenciais emitidas por esta organização.",
"ListItemNewCredentials": "Receba ofertas de novas credenciais.",
"ListItemProofRequest": "Acompanhe requisições de prova.",
"RemoveContacts": "Você sempre pode remover Contatos a qualquer momento de sua",
"ContactsLink": "Lista de Contatos",
"ContactSharing": "O uso de suas credenciais nunca é compartilhado com seus Contatos.",
},
"Credentials": {
"CredentialsNotFound": "Credenciais não encontradas",
Expand Down
5 changes: 1 addition & 4 deletions core/App/screens/ListContacts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ interface ListContactsProps {
const ListContacts: React.FC<ListContactsProps> = ({ navigation }) => {
const { records } = useConnections()
// Filter out mediator agents
const connections = records.filter((r) => {
const type = (r.getTag('connectionType') || []) as [string]
return !type?.includes(ConnectionType.Mediator)
})
const connections = records.filter((r) => !r.connectionTypes.includes(ConnectionType.Mediator))
const { ColorPallet } = useTheme()
return (
<FlatList
Expand Down