File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import * as webpack from '../webpack' ;
18
18
import { IsOfficialClient } from '../whatsapp' ;
19
- import { wrapModuleFunction } from '../whatsapp/exportModule' ;
20
- import { isLegitErrorStack } from '../whatsapp/functions' ;
19
+ // import { wrapModuleFunction } from '../whatsapp/exportModule';
20
+ // import { isLegitErrorStack } from '../whatsapp/functions';
21
21
22
22
webpack . onInjected ( ( ) => {
23
23
/**
@@ -26,8 +26,11 @@ webpack.onInjected(() => {
26
26
IsOfficialClient . isOfficialClient = true ;
27
27
} ) ;
28
28
29
+ /*
30
+ // Commented for >= 2.3000.1015x run, i will fix soon
29
31
webpack.onFullReady(() => {
30
32
wrapModuleFunction(isLegitErrorStack, () => {
31
33
return true;
32
34
});
33
35
}, 1000);
36
+ */
Original file line number Diff line number Diff line change @@ -61,5 +61,5 @@ exportModule(
61
61
{
62
62
ChatstateModel : 'Chatstate' ,
63
63
} ,
64
- ( m ) => m . Chatstate && m . ChatstateCollection
64
+ ( m ) => ( m . Chatstate && m . ChatstateCollection ) || m . Chatstate
65
65
) ;
Original file line number Diff line number Diff line change @@ -338,3 +338,14 @@ exportModule(
338
338
} ,
339
339
( m ) => m . StickerSearchCollectionImpl || m . StickerSearchCollection
340
340
) ;
341
+
342
+ exportModule (
343
+ exports ,
344
+ {
345
+ BusinessProfileStore : [
346
+ 'BusinessProfileCollectionImpl' ,
347
+ 'BusinessProfileCollection' ,
348
+ ] ,
349
+ } ,
350
+ ( m ) => m . BusinessProfileCollectionImpl || m . BusinessProfileCollection
351
+ ) ;
You can’t perform that action at this time.
0 commit comments