FIX: increments message version when processed (#24713)

Incrementing version, ensures the message will re-play decorators.

Also removes a debugging line which had been forgotten.
This commit is contained in:
Joffrey JAFFEUX 2023-12-05 12:34:19 +01:00 committed by GitHub
parent 9362949687
commit 094d597ec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -127,6 +127,7 @@ export default class ChatChannelSubscriptionManager {
if (message) {
message.cooked = data.chat_message.cooked;
message.processed = true;
message.incrementVersion();
}
}
@ -234,7 +235,5 @@ export default class ChatChannelSubscriptionManager {
if (message?.thread) {
message.thread.preview = ChatThreadPreview.create(data.preview);
}
message.thread.preview.yolo = 1;
}
}

View File

@ -117,6 +117,7 @@ export default class ChatChannelThreadSubscriptionManager {
if (message) {
message.cooked = data.chat_message.cooked;
message.processed = true;
message.incrementVersion();
}
}