fix(MessagePayload): preserve existing flags when editing (#10766)

* fix(MessagePayload): preserve existing flags when editing

* refactor: sync with #10765
This commit is contained in:
Danial Raza
2025-02-21 16:21:16 +01:00
committed by GitHub
parent 595bded8a5
commit ebfd52695e

View File

@@ -166,9 +166,7 @@ class MessagePayload {
let flags;
if (
// eslint-disable-next-line eqeqeq
this.options.flags != null ||
(this.isMessage && this.options.reply === undefined) ||
this.isMessageManager
this.options.flags != null
) {
flags = new MessageFlagsBitField(this.options.flags).bitfield;
}