fix(MessagePayload): don't set reply flags to target flags (#7514)

This commit is contained in:
ckohen
2022-02-22 23:37:52 -08:00
committed by GitHub
parent 6a2fa70b8e
commit 4f306521d8

View File

@@ -143,7 +143,11 @@ class MessagePayload {
}
let flags;
if (typeof this.options.flags !== 'undefined' || this.isMessage || this.isMessageManager) {
if (
typeof this.options.flags !== 'undefined' ||
(this.isMessage && typeof this.options.reply === 'undefined') ||
this.isMessageManager
) {
flags =
// eslint-disable-next-line eqeqeq
this.options.flags != null