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:
parent
9362949687
commit
094d597ec8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,6 +117,7 @@ export default class ChatChannelThreadSubscriptionManager {
|
|||
if (message) {
|
||||
message.cooked = data.chat_message.cooked;
|
||||
message.processed = true;
|
||||
message.incrementVersion();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue