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

* fix(MessagePayload): preserve existing flags when editing

* refactor: request changes

* fix: missing `.bitfield`
This commit is contained in:
Danial Raza
2025-02-21 16:17:33 +01:00
committed by GitHub
parent cbb33ecdac
commit ed55c029d6

View File

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