| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Reviewer's GuideSimplify and correct edited message handling by removing outdated protocolMessage checks and relying solely on a unified editedMessage variable across different WhatsApp versions. Sequence diagram for unified edited message handling in BaileysStartupServicesequenceDiagram
participant BaileysStartupService
participant ReceivedMessage
participant ChatwootService
BaileysStartupService->>ReceivedMessage: receive message
alt message contains editedMessage (new or old format)
BaileysStartupService->>ChatwootService: eventWhatsapp('messages.edit', ...)
end
Class diagram for BaileysStartupService edited message handlingclassDiagram
class BaileysStartupService {
+configService
+localChatwoot
+chatwootService
+handleReceivedMessage(received)
}
BaileysStartupService --> ChatwootService : uses
class ChatwootService {
+eventWhatsapp(eventType, data)
}
class ReceivedMessage {
+message
}
class Message {
+protocolMessage
+editedMessage
+pollUpdateMessage
}
BaileysStartupService ..> ReceivedMessage : processes
ReceivedMessage o-- Message
Message o-- ProtocolMessage
Message o-- EditedMessage
class ProtocolMessage {
+editedMessage
}
class EditedMessage {
+message
}
EditedMessage o-- Message
File-Level Changes
Tips and commands Interacting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sorry, something went wrong.
|
Usando chatwoot 4.4.0 e a evo 2.3.1 tenho problema com msg editada pelo usr mas nao surte efeito no chatwoot. No chatwoot fica inalterado. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Descrição
Em algumas versões do Whats instaladas em alguns dispositivos trazem um formato de estrutura diferente de msgs editadas. Isso já tinha sido mapeado anteriormente, mas a logica atual não processava corretamente essas mensagens de edição de mensagens corretamente para esses casos excepcionais.
Summary by Sourcery
Fix WhatsApp edited message handling in Baileys service to ensure they are properly detected and forwarded to Chatwoot
Bug Fixes: