You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Merge pull request #5860 from samhh/always-render-ignored-users
Render ignored users setting regardless of if there are any
This commit is contained in:
@@ -255,10 +255,9 @@ export default class SecurityUserSettingsTab extends React.Component {
|
|||||||
_renderIgnoredUsers() {
|
_renderIgnoredUsers() {
|
||||||
const {waitingUnignored, ignoredUserIds} = this.state;
|
const {waitingUnignored, ignoredUserIds} = this.state;
|
||||||
|
|
||||||
if (!ignoredUserIds || ignoredUserIds.length === 0) return null;
|
const userIds = !ignoredUserIds?.length
|
||||||
|
? _t('You have no ignored users.')
|
||||||
const userIds = ignoredUserIds
|
: ignoredUserIds.map((u) => <IgnoredUser
|
||||||
.map((u) => <IgnoredUser
|
|
||||||
userId={u}
|
userId={u}
|
||||||
onUnignored={this._onUserUnignored}
|
onUnignored={this._onUserUnignored}
|
||||||
key={u}
|
key={u}
|
||||||
|
|||||||
@@ -1307,6 +1307,7 @@
|
|||||||
"Cryptography": "Cryptography",
|
"Cryptography": "Cryptography",
|
||||||
"Session ID:": "Session ID:",
|
"Session ID:": "Session ID:",
|
||||||
"Session key:": "Session key:",
|
"Session key:": "Session key:",
|
||||||
|
"You have no ignored users.": "You have no ignored users.",
|
||||||
"Bulk options": "Bulk options",
|
"Bulk options": "Bulk options",
|
||||||
"Accept all %(invitedRooms)s invites": "Accept all %(invitedRooms)s invites",
|
"Accept all %(invitedRooms)s invites": "Accept all %(invitedRooms)s invites",
|
||||||
"Reject all %(invitedRooms)s invites": "Reject all %(invitedRooms)s invites",
|
"Reject all %(invitedRooms)s invites": "Reject all %(invitedRooms)s invites",
|
||||||
|
|||||||
Reference in New Issue
Block a user