show message when no blocked contact in settings

pull/1323/head
Audric Ackermann 5 years ago
parent b38299edcb
commit 66dcfdfe6e
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -2175,5 +2175,9 @@
"closedGroupMaxSize": { "closedGroupMaxSize": {
"message": "A closed group cannot have more than 10 members", "message": "A closed group cannot have more than 10 members",
"androidKey": "activity_create_closed_group_too_many_group_members_error" "androidKey": "activity_create_closed_group_too_many_group_members_error"
},
"noBlockedContacts": {
"message": "No blocked contacts",
"androidKey": "blocked_contacts_fragment__no_blocked_contacts"
} }
} }

@ -613,6 +613,25 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
confirmationDialogParams: undefined, confirmationDialogParams: undefined,
}); });
} }
if (blockedNumbers.length === 0) {
return [
{
id: 'noBlockedContacts',
title: '',
description: window.i18n('noBlockedContacts'),
type: undefined,
category: SessionSettingCategory.Blocked,
content: undefined,
comparisonValue: undefined,
setFn: undefined,
hidden: false,
onClick: undefined,
confirmationDialogParams: undefined,
},
];
}
return results; return results;
} }

Loading…
Cancel
Save