Skip to content

Commit 1460491

Browse files
committed
fix(avatar): Remove avatar for now
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 4889586 commit 1460491

1 file changed

Lines changed: 3 additions & 31 deletions

File tree

src/Components/NotificationItem.vue

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -34,37 +34,19 @@
3434
class="notification-subject full-subject-link external"
3535
target="_blank"
3636
rel="noreferrer noopener">
37-
<NcAvatar
38-
v-if="getAuthorOfChatNotification"
39-
:user="getAuthorOfChatNotification.id"
40-
:server="getAuthorOfChatNotification.server"
41-
:displayName="getAuthorOfChatNotification.name"
42-
:size="44" />
43-
<span v-else-if="notification.icon" class="image"><img :src="notification.icon" class="notification-icon" alt=""></span>
37+
<span v-if="notification.icon" class="image"><img :src="notification.icon" class="notification-icon" alt=""></span>
4438
<span class="subject">{{ notification.subject }} ↗</span>
4539
</a>
4640
<a v-else-if="useLink" :href="notification.link" class="notification-subject full-subject-link">
47-
<NcAvatar
48-
v-if="getAuthorOfChatNotification"
49-
:user="getAuthorOfChatNotification.id"
50-
:server="getAuthorOfChatNotification.server"
51-
:displayName="getAuthorOfChatNotification.name"
52-
:size="44" />
53-
<span v-else-if="notification.icon" class="image"><img :src="notification.icon" class="notification-icon" alt=""></span>
41+
<span v-if="notification.icon" class="image"><img :src="notification.icon" class="notification-icon" alt=""></span>
5442
<NcRichText
5543
v-if="notification.subjectRich"
5644
:text="notification.subjectRich"
5745
:arguments="preparedSubjectParameters" />
5846
<span v-else class="subject">{{ notification.subject }}</span>
5947
</a>
6048
<div v-else class="notification-subject">
61-
<NcAvatar
62-
v-if="getAuthorOfChatNotification"
63-
:user="getAuthorOfChatNotification.id"
64-
:server="getAuthorOfChatNotification.server"
65-
:displayName="getAuthorOfChatNotification.name"
66-
:size="44" />
67-
<span v-else-if="notification.icon" class="image"><img :src="notification.icon" class="notification-icon" alt=""></span>
49+
<span v-if="notification.icon" class="image"><img :src="notification.icon" class="notification-icon" alt=""></span>
6850
<NcRichText
6951
v-if="notification.subjectRich"
7052
:text="notification.subjectRich"
@@ -114,7 +96,6 @@ import { showError } from '@nextcloud/dialogs'
11496
import { emit } from '@nextcloud/event-bus'
11597
import { t } from '@nextcloud/l10n'
11698
import { generateOcsUrl } from '@nextcloud/router'
117-
import NcAvatar from '@nextcloud/vue/components/NcAvatar'
11899
import NcButton from '@nextcloud/vue/components/NcButton'
119100
import NcDateTime from '@nextcloud/vue/components/NcDateTime'
120101
import NcRichText from '@nextcloud/vue/components/NcRichText'
@@ -160,7 +141,6 @@ export default {
160141
ActionButton,
161142
IconClose,
162143
IconMessageOutline,
163-
NcAvatar,
164144
NcButton,
165145
NcDateTime,
166146
NcRichText,
@@ -215,14 +195,6 @@ export default {
215195
isCollapsedMessage() {
216196
return this.notification.message.length > 200 && !this.showFullMessage
217197
},
218-
219-
getAuthorOfChatNotification() {
220-
if (this.notification.objectType !== 'chat') {
221-
return null
222-
}
223-
const params = this.notification.subjectRichParameters || {}
224-
return Object.values(params).find((p) => p.type === 'user') || null
225-
},
226198
},
227199
228200
methods: {

0 commit comments

Comments
 (0)