Skip to content

Commit 7d92ad9

Browse files
committed
adjust notify push messages
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent c01f749 commit 7d92ad9

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/assistant.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { listen } from '@nextcloud/notify_push'
1212

1313
window.assistantPollTimerId = null
1414

15-
listen('task_update', (type, body) => {
15+
listen('taskprocessing:task_update', (type, body) => {
1616
console.debug('[assistant] received task update push notification', type, body)
1717
const newStatus = body.new_status
1818
const taskId = body.task_id
@@ -151,7 +151,7 @@ export async function openAssistantForm({
151151
return true
152152
}
153153
// attempt to listen to push notifications to get the intermediate output
154-
const pushChannel = 'task_' + pushTaskId
154+
const pushChannel = 'taskprocessing:task_id_' + pushTaskId
155155
const hasPush = listen(pushChannel, (type, body) => {
156156
console.debug('[assistant] received push notification', type, body)
157157
if (pushTaskId === view.selectedTaskId) {
@@ -659,7 +659,7 @@ export async function openAssistantTask(
659659
return true
660660
}
661661
// attempt to listen to push notifications to get the intermediate output
662-
const pushChannel = 'task_' + pushTaskId
662+
const pushChannel = 'taskprocessing:task_id_' + pushTaskId
663663
const hasPush = listen(pushChannel, (type, body) => {
664664
console.debug('[assistant] received push notification', type, body)
665665
if (pushTaskId === view.selectedTaskId) {

src/components/ChattyLLM/ChattyLLMInputForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ export default {
932932
if (this.isListeningTo[pushTaskId]) {
933933
return true
934934
}
935-
const pushChannel = 'task_' + pushTaskId
935+
const pushChannel = 'taskprocessing:task_id_' + pushTaskId
936936
const hasPush = listen(pushChannel, (type, body) => {
937937
console.debug('[assistant] received push notification', type, body)
938938
const activeSessionId = this.active?.id

src/views/AssistantPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default {
129129
return true
130130
}
131131
// attempt to listen to push notifications to get the intermediate output
132-
const pushChannel = 'task_' + pushTaskId
132+
const pushChannel = 'taskprocessing:task_id_' + pushTaskId
133133
const hasPush = listen(pushChannel, (type, body) => {
134134
console.debug('[assistant] received push notification', type, body)
135135
if (pushTaskId === this.task.id) {

0 commit comments

Comments
 (0)