-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix checking if sending to a group #3592
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
src/util/Injected/Utils.js
Outdated
@@ -222,7 +222,7 @@ exports.LoadUtils = () => { | |||
let from = chat.id.isLid() ? lidUser : meUser; | |||
let participant; | |||
|
|||
if (chat.isGroup) { | |||
if (chat.id.isGroup()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we check if chat.id.isGroup exists ? or chat.isGroup exists too ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tuyuribr
Added check for chat.id
and chat.id.isGroup
existance
PR Details
Description
Related Issue(s)
Motivation and Context
How Has This Been Tested
Environment
Types of changes
Checklist