canove / whaticket-community

A very simple Ticket System based on WhatsApp messages, that allow multi-users in same WhatsApp account.
MIT License
1.55k stars 795 forks source link

Message marked as read but has not yet been Opened! #508

Closed YellowT-Cloud closed 1 year ago

YellowT-Cloud commented 1 year ago

image

[PT] Após enviar a Mensagem no Painel ela já é marcada automaticamente como Entregue e Lida pelo Usuário! Porém a Mensagem não foi lida ainda! Alguma Solução?

[EN] After sending the Message in the Dashboard it is already automatically marked as Delivered and Read by the User! But the Message hasn't been read yet! Any solution?

rodrimarchese commented 1 year ago

Same here! @thiagoaraujo007 mark it as a bug in 'Labels'! I can add that after the second message, then there will be 1 non read message marked as non read. (but there are 2 messages non read). And if no second message is sent, you will have the ticket as read...

will try to solve it but If anyone has already fix it... will help a lot. ty

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Horgun commented 1 year ago

I partially fixed this, I thought I had solved it but later realized i didn't solve everything. After you open the ticket and leave it, the other messages will appear correctly as unread. Only the first message of the ticket doesn't seem to work. Examples:

  1. Client sends 1 message (the ticket is created but doesn't show as unread)
  2. Client sends 2 messages (the ticket is created and shows that there is 1 unread message instead of 2)
  3. After the ticket is read once, if the client sends more messages it counts correctly.
Horgun commented 1 year ago

Found it, it happens when whaticket assigns the queue to the ticket: image1 wbotMessageListener.ts

And when you open "UpdateTicketService" image2 UpdateTicketService.ts

Just gotta find the right way to solve it now

Horgun commented 1 year ago

image UpdateTicketService.ts This seems to be working.

image wbotMessageListener.ts This change I had been using for a while, if fixes the quantity of unread messages.

rodrimarchese commented 1 year ago

@Horgun Those fixes work for me! thank you!

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.