Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat unread count is wrong #3123

Open
1 task done
joweste opened this issue Jun 27, 2024 · 1 comment
Open
1 task done

Chat unread count is wrong #3123

joweste opened this issue Jun 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@joweste
Copy link

joweste commented Jun 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

After I send a message from my other mobile to my connected whatsapp number and read the counting I get 0.
In message_create event, I do:
const chat: Chat = await msg.getChat();
const unreadMessages = chat.unreadCount; // The value should be 1, but got 0

Expected behavior

The chat.unreadCount shoul be return 1, not 0

Steps to Reproduce the Bug or Issue

After I send a message from my other mobile to my connected whatsapp number and read the counting I get 0.
In message_create event, I do:
const chat: Chat = await msg.getChat();
const unreadMessages = chat.unreadCount; // The value should be 1, but got 0

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Linux + Ubuntu 22.04
Phone OS: Android
whatsapp-web.js version: 1.24.0
WhatsApp Web version: 2.2412.54v2
Node.js Version: 20.11.0

Additional context

No response

@joweste joweste added the bug Something isn't working label Jun 27, 2024
Repository owner deleted a comment from gp4jeff Jun 29, 2024
Repository owner deleted a comment from gp4jeff Jun 29, 2024
@dhyey0011
Copy link

Hey there, i would like to work on this. can you assign it to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants