Skip to content

Commit db54f46

Browse files
committed
update: no need to mark a message as processing.
1 parent ee3ab70 commit db54f46

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/routes/(console)/project-[project]/messaging/helper.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,8 @@ export function stopPolling() {
3636
}
3737

3838
/** Starts polling message statuses, optionally marking them as processing. */
39-
export function pollMessagesStatus(messages: Models.Message[], update: boolean = true) {
39+
export function pollMessagesStatus(messages: Models.Message[]) {
4040
messages.forEach((message) => {
41-
if (update) {
42-
message.status = 'processing';
43-
}
44-
4541
clearPolling(message.$id);
4642
checkMessageStatus(message);
4743

src/routes/(console)/project-[project]/messaging/message-[message]/overview.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
bind:show={showSend}
8585
{message}
8686
{topics}
87-
on:update={() => pollMessagesStatus([message], true)} />
87+
on:update={() => pollMessagesStatus([message])} />
8888

8989
<CancelModal bind:show={showCancel} {message} />
9090

0 commit comments

Comments
 (0)