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

Bug: Chat.isMuted returns undefined #2781

Open
1 task done
Zzombiee2361 opened this issue Feb 20, 2024 · 6 comments · May be fixed by #2999
Open
1 task done

Bug: Chat.isMuted returns undefined #2781

Zzombiee2361 opened this issue Feb 20, 2024 · 6 comments · May be fixed by #2999
Labels
bug Something isn't working

Comments

@Zzombiee2361
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I am unable to check whether a chat is muted or not since Chat.isMuted always returns undefined

Expected behavior

It should return boolean

Steps to Reproduce the Bug or Issue

Execute the code

Relevant Code

const client = new Client();

client.on('qr', (qr) => {
  console.log('QR RECEIVED', qr);
});

client.on('ready', () => {
  const chat = (await client.getChats())[0]
  console.log('is chat muted', chat.isMuted); // returns undefined
});

client.initialize();

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Linux
Phone OS: Android
whatsapp-web.js version: 1.23.0
WhatsApp Web version: 2.2407.3
Node.js Version: v16.15.0

Additional context

No response

@Zzombiee2361 Zzombiee2361 added the bug Something isn't working label Feb 20, 2024
@alechkos
Copy link
Collaborator

const chat = await client.getChatById('[email protected]');
console.log(chat.isMuted);

@Zzombiee2361
Copy link
Author

why is this closed? it does indeed returns undefined though

@brtwrs
Copy link

brtwrs commented Feb 20, 2024

I have exactly the same problem. This issue should not be closed

@alechkos alechkos reopened this Feb 22, 2024
@renyale
Copy link

renyale commented Feb 26, 2024

The same thing has happened to me, since January 13th...

@FalloNero
Copy link

Yep chat.isMuted returns undefined :c

@alechkos alechkos linked a pull request May 1, 2024 that will close this issue
7 tasks
@RAKESHSUVIDYA
Copy link

QR is not working properly in ubuntu platform. Is there anyone who can help

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

Successfully merging a pull request may close this issue.

6 participants