mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: remove "treatCiphertextMessagesAsReal" flag
!BREAKING_CHANGE This was generally a poor design decision on my part to add something like this -- primarily because it could increment the chat unread counter a 100 times for a single message
This commit is contained in:
@@ -12,7 +12,7 @@ const STATUS_MAP = {
|
||||
} as { [_: string]: WAMessageStatus }
|
||||
|
||||
const makeMessagesSocket = (config: LegacySocketConfig) => {
|
||||
const { logger, treatCiphertextMessagesAsReal } = config
|
||||
const { logger } = config
|
||||
const sock = makeChatsSocket(config)
|
||||
const {
|
||||
ev,
|
||||
@@ -117,10 +117,7 @@ const makeMessagesSocket = (config: LegacySocketConfig) => {
|
||||
const protocolMessage = normalizedContent?.protocolMessage
|
||||
|
||||
if(
|
||||
(
|
||||
!!normalizedContent ||
|
||||
(message.messageStubType === WAMessageStubType.CIPHERTEXT && treatCiphertextMessagesAsReal)
|
||||
)
|
||||
!!normalizedContent
|
||||
&& !normalizedContent?.protocolMessage
|
||||
&& !normalizedContent?.reactionMessage
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user