Skip to content

Commit

Permalink
fix: Added isGroup for chat model (#2516)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkamra2000 authored Nov 19, 2024
1 parent 12cfad9 commit 4ae02f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/chat/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ function applyPatchModel() {
shouldAppearInList: functions.getShouldAppearInList,
isUser: functions.getIsUser,
isPSA: functions.getIsPSA,
isGroup: functions.getIsGroup,
previewMessage: functions.getPreviewMessage,
showChangeNumberNotification: functions.getShowChangeNumberNotification,
hasUnread: functions.getHasUnread,
Expand Down
4 changes: 4 additions & 0 deletions src/whatsapp/models/ChatModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ interface Derived {
* @deprecated
*/
isGroup: boolean;
/**
* Deprecated in favor of getIsGroup
* @deprecated
*/
isParentGroup: boolean;
isBroadcast: boolean;
isNewsletter: boolean;
Expand Down

0 comments on commit 4ae02f7

Please sign in to comment.