|
34 | 34 | class="notification-subject full-subject-link external" |
35 | 35 | target="_blank" |
36 | 36 | 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> |
44 | 38 | <span class="subject">{{ notification.subject }} ↗</span> |
45 | 39 | </a> |
46 | 40 | <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> |
54 | 42 | <NcRichText |
55 | 43 | v-if="notification.subjectRich" |
56 | 44 | :text="notification.subjectRich" |
57 | 45 | :arguments="preparedSubjectParameters" /> |
58 | 46 | <span v-else class="subject">{{ notification.subject }}</span> |
59 | 47 | </a> |
60 | 48 | <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> |
68 | 50 | <NcRichText |
69 | 51 | v-if="notification.subjectRich" |
70 | 52 | :text="notification.subjectRich" |
@@ -114,7 +96,6 @@ import { showError } from '@nextcloud/dialogs' |
114 | 96 | import { emit } from '@nextcloud/event-bus' |
115 | 97 | import { t } from '@nextcloud/l10n' |
116 | 98 | import { generateOcsUrl } from '@nextcloud/router' |
117 | | -import NcAvatar from '@nextcloud/vue/components/NcAvatar' |
118 | 99 | import NcButton from '@nextcloud/vue/components/NcButton' |
119 | 100 | import NcDateTime from '@nextcloud/vue/components/NcDateTime' |
120 | 101 | import NcRichText from '@nextcloud/vue/components/NcRichText' |
@@ -160,7 +141,6 @@ export default { |
160 | 141 | ActionButton, |
161 | 142 | IconClose, |
162 | 143 | IconMessageOutline, |
163 | | - NcAvatar, |
164 | 144 | NcButton, |
165 | 145 | NcDateTime, |
166 | 146 | NcRichText, |
@@ -215,14 +195,6 @@ export default { |
215 | 195 | isCollapsedMessage() { |
216 | 196 | return this.notification.message.length > 200 && !this.showFullMessage |
217 | 197 | }, |
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 | | - }, |
226 | 198 | }, |
227 | 199 |
|
228 | 200 | methods: { |
|
0 commit comments