diff options
Diffstat (limited to 'packages/client/src/components/notifications.vue')
| -rw-r--r-- | packages/client/src/components/notifications.vue | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/packages/client/src/components/notifications.vue b/packages/client/src/components/notifications.vue index 31511fb515..5a77b5487e 100644 --- a/packages/client/src/components/notifications.vue +++ b/packages/client/src/components/notifications.vue @@ -9,7 +9,7 @@ <template #default="{ items: notifications }"> <XList v-slot="{ item: notification }" class="elsfgstc" :items="notifications" :no-gap="true"> - <XNote v-if="['reply', 'quote', 'mention'].includes(notification.type)" :key="notification.id" :note="notification.note" @update:note="noteUpdated(notification, $event)"/> + <XNote v-if="['reply', 'quote', 'mention'].includes(notification.type)" :key="notification.id" :note="notification.note"/> <XNotification v-else :key="notification.id" :notification="notification" :with-time="true" :full="true" class="_panel notification"/> </XList> </template> @@ -62,13 +62,6 @@ const onNotification = (notification) => { } }; -const noteUpdated = (item, note) => { - pagingComponent.value?.updateItem(item.id, old => ({ - ...old, - note: note, - })); -}; - onMounted(() => { const connection = stream.useChannel('main'); connection.on('notification', onNotification); |