Skip to content

Commit

Permalink
fix: Fixed functions in whatsapp >=2.3000.1013010908
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Apr 24, 2024
1 parent 49dda96 commit 0481ce8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/whatsapp/collections/StatusCollection.ts
Expand Up @@ -19,7 +19,10 @@ import { Wid } from '../misc';
import { StatusModel } from '../models';
import { BaseCollection } from '.';

/** @whatsapp 46133 */
/**
* @whatsapp 46133
* @whatsapp WAWebTextStatusCollection >= 2.3000.1013010908
* */
export declare class StatusCollection extends BaseCollection<StatusModel> {
static model: StatusModel;
static idClass: typeof Wid;
Expand All @@ -29,6 +32,8 @@ export declare class StatusCollection extends BaseCollection<StatusModel> {

exportModule(
exports,
{ StatusCollection: 'StatusCollectionImpl' },
(m) => m.StatusCollectionImpl
{
StatusCollection: ['StatusCollectionImpl', 'TextStatusCollectionImpl'],
},
(m) => m.StatusCollectionImpl || m.TextStatusCollectionImpl
);
8 changes: 8 additions & 0 deletions src/whatsapp/stores.ts
Expand Up @@ -212,3 +212,11 @@ exportModule(
},
(m) => m.default.NewsletterCollection
);

exportModule(
exports,
{
StatusStore: ['StatusCollectionImpl', 'TextStatusCollection'],
},
(m) => m.StatusCollection || m.TextStatusCollection
);

0 comments on commit 0481ce8

Please sign in to comment.