Render ignored users setting regardless of if there are any

Signed-off-by: Sam A. Horvath-Hunt <hello@samhh.com>
This commit is contained in:
Sam A. Horvath-Hunt 2021-04-13 17:22:07 +01:00
parent ae5b6ef831
commit 14b8b0f8da
No known key found for this signature in database
GPG key ID: 4667250BD56735A8
2 changed files with 4 additions and 4 deletions

View file

@ -255,10 +255,9 @@ export default class SecurityUserSettingsTab extends React.Component {
_renderIgnoredUsers() {
const {waitingUnignored, ignoredUserIds} = this.state;
if (!ignoredUserIds || ignoredUserIds.length === 0) return null;
const userIds = ignoredUserIds
.map((u) => <IgnoredUser
const userIds = !ignoredUserIds?.length
? _t('You have no ignored users.')
: ignoredUserIds.map((u) => <IgnoredUser
userId={u}
onUnignored={this._onUserUnignored}
key={u}

View file

@ -1305,6 +1305,7 @@
"Cryptography": "Cryptography",
"Session ID:": "Session ID:",
"Session key:": "Session key:",
"You have no ignored users.": "You have no ignored users.",
"Bulk options": "Bulk options",
"Accept all %(invitedRooms)s invites": "Accept all %(invitedRooms)s invites",
"Reject all %(invitedRooms)s invites": "Reject all %(invitedRooms)s invites",