Skip to content

Commit

Permalink
fix: Fixed functions for whatsapp >= 2.3000.10178x
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Nov 11, 2024
1 parent 87953a3 commit 7e1364a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/whatsapp/collections/ReactionsCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ export declare class ReactionsCollection extends BaseCollection<ReactionsModel>

exportModule(
exports,
{ ReactionsCollection: 'ReactionsCollectionImpl' },
(m) => m.ReactionsCollectionImpl
{ ReactionsCollection: ['ReactionsCollectionImpl', 'ReactionsCollection'] },
(m) => m.ReactionsCollectionImpl || m.ReactionsCollection
);
6 changes: 5 additions & 1 deletion src/whatsapp/collections/StatusV3Collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ export declare class StatusV3Collection extends BaseCollection<StatusV3Model> {
exportModule(
exports,
{
StatusV3Collection: ['StatusV3CollectionImpl', 'StatusCollectionImpl'],
StatusV3Collection: [
'StatusV3CollectionImpl',
'StatusCollectionImpl',
'StatusCollection',
],
},
(m) =>
m.StatusV3CollectionImpl ||
Expand Down
8 changes: 8 additions & 0 deletions src/whatsapp/stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,3 +387,11 @@ exportModule(
},
(m) => m.NoteCollection
);

exportModule(
exports,
{
ReactionsStore: ['ReactionsCollectionImpl', 'ReactionsCollection'],
},
(m) => m.ReactionsCollectionImpl || m.ReactionsCollection
);

0 comments on commit 7e1364a

Please sign in to comment.