mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: Fixed ephemeral message visual bug (#185)
Co-authored-by: aqulzz <75623219+zennn08@users.noreply.github.com>
This commit is contained in:
@@ -543,7 +543,7 @@ export const generateWAMessageFromContent = (
|
|||||||
|
|
||||||
// if a participant is quoted, then it must be a group
|
// if a participant is quoted, then it must be a group
|
||||||
// hence, remoteJid of group must also be entered
|
// hence, remoteJid of group must also be entered
|
||||||
if(quoted.key.participant || quoted.participant) {
|
if(jid !== quoted.key.remoteJid) {
|
||||||
contextInfo.remoteJid = quoted.key.remoteJid
|
contextInfo.remoteJid = quoted.key.remoteJid
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -563,11 +563,6 @@ export const generateWAMessageFromContent = (
|
|||||||
expiration: options.ephemeralExpiration || WA_DEFAULT_EPHEMERAL,
|
expiration: options.ephemeralExpiration || WA_DEFAULT_EPHEMERAL,
|
||||||
//ephemeralSettingTimestamp: options.ephemeralOptions.eph_setting_ts?.toString()
|
//ephemeralSettingTimestamp: options.ephemeralOptions.eph_setting_ts?.toString()
|
||||||
}
|
}
|
||||||
message = {
|
|
||||||
ephemeralMessage: {
|
|
||||||
message
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message = WAProto.Message.fromObject(message)
|
message = WAProto.Message.fromObject(message)
|
||||||
|
|||||||
Reference in New Issue
Block a user