Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-09-02 16:57:25 +0300
committerJoas Schilling <coding@schilljs.com>2021-09-14 16:34:12 +0300
commita95bf0820d4d34f9eaa749ec3ca020acc635355f (patch)
tree3d2d05928c63beadce48ab052add5936125ddf97 /src
parent5ddc878c183d66671a6f15e464828ccff79fba8a (diff)
Unify handling of deleted users
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/MessagesList/MessagesGroup/MessagesGroup.spec.js6
-rw-r--r--src/components/MessagesList/MessagesGroup/MessagesGroup.vue2
-rw-r--r--src/components/Quote.vue2
-rw-r--r--src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.spec.js2
-rw-r--r--src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue2
5 files changed, 7 insertions, 7 deletions
diff --git a/src/components/MessagesList/MessagesGroup/MessagesGroup.spec.js b/src/components/MessagesList/MessagesGroup/MessagesGroup.spec.js
index 8a451538e..6b71c0b84 100644
--- a/src/components/MessagesList/MessagesGroup/MessagesGroup.spec.js
+++ b/src/components/MessagesList/MessagesGroup/MessagesGroup.spec.js
@@ -298,17 +298,17 @@ describe('MessagesGroup.vue', () => {
const avatarEl = wrapper.findComponent({ name: 'AuthorAvatar' })
expect(avatarEl.attributes('authortype')).toBe(ATTENDEE.ACTOR_TYPE.USERS)
expect(avatarEl.attributes('authorid')).toBe('actor-1')
- expect(avatarEl.attributes('displayname')).toBe('[Unknown username]')
+ expect(avatarEl.attributes('displayname')).toBe('Deleted user')
const messagesEl = wrapper.findAllComponents({ name: 'Message' })
let message = messagesEl.at(0)
expect(message.attributes('id')).toBe('100')
expect(message.attributes('actorid')).toBe('actor-1')
- expect(message.attributes('actordisplayname')).toBe('[Unknown username]')
+ expect(message.attributes('actordisplayname')).toBe('Deleted user')
message = messagesEl.at(1)
expect(message.attributes('id')).toBe('110')
expect(message.attributes('actorid')).toBe('actor-1')
- expect(message.attributes('actordisplayname')).toBe('[Unknown username]')
+ expect(message.attributes('actordisplayname')).toBe('Deleted user')
})
})
diff --git a/src/components/MessagesList/MessagesGroup/MessagesGroup.vue b/src/components/MessagesList/MessagesGroup/MessagesGroup.vue
index 24ae3b5ca..e3187e080 100644
--- a/src/components/MessagesList/MessagesGroup/MessagesGroup.vue
+++ b/src/components/MessagesList/MessagesGroup/MessagesGroup.vue
@@ -147,7 +147,7 @@ export default {
}
if (displayName === '') {
- return t('spreed', '[Unknown username]')
+ return t('spreed', 'Deleted user')
}
return displayName
diff --git a/src/components/Quote.vue b/src/components/Quote.vue
index ac2a739f7..6fed69bab 100644
--- a/src/components/Quote.vue
+++ b/src/components/Quote.vue
@@ -145,7 +145,7 @@ export default {
}
if (displayName === '') {
- return t('spreed', '[Unknown username]')
+ return t('spreed', 'Deleted user')
}
return displayName
diff --git a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.spec.js b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.spec.js
index 8ed0a391b..f05ba8bf4 100644
--- a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.spec.js
+++ b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.spec.js
@@ -154,7 +154,7 @@ describe('Participant.vue', () => {
const avatarEl = wrapper.findComponent(AvatarWrapper)
expect(avatarEl.exists()).toBe(true)
- expect(avatarEl.props('name')).toBe('[Unknown username]')
+ expect(avatarEl.props('name')).toBe('Deleted user')
})
test('renders offline avatar when no sessions exist', () => {
diff --git a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue
index 7ec84f126..f582613e1 100644
--- a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue
+++ b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue
@@ -299,7 +299,7 @@ export default {
}
if (displayName === '') {
- return t('spreed', '[Unknown username]')
+ return t('spreed', 'Deleted user')
}
return displayName