Skip to content

Commit f848716

Browse files
committed
style: Fixed more functions
1 parent 3204511 commit f848716

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

src/conn/patch.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
import * as webpack from '../webpack';
1818
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';
2121

2222
webpack.onInjected(() => {
2323
/**
@@ -26,8 +26,11 @@ webpack.onInjected(() => {
2626
IsOfficialClient.isOfficialClient = true;
2727
});
2828

29+
/*
30+
// Commented for >= 2.3000.1015x run, i will fix soon
2931
webpack.onFullReady(() => {
3032
wrapModuleFunction(isLegitErrorStack, () => {
3133
return true;
3234
});
3335
}, 1000);
36+
*/

src/whatsapp/models/ChatstateModel.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ exportModule(
6161
{
6262
ChatstateModel: 'Chatstate',
6363
},
64-
(m) => m.Chatstate && m.ChatstateCollection
64+
(m) => (m.Chatstate && m.ChatstateCollection) || m.Chatstate
6565
);

src/whatsapp/stores.ts

+11
Original file line numberDiff line numberDiff line change
@@ -338,3 +338,14 @@ exportModule(
338338
},
339339
(m) => m.StickerSearchCollectionImpl || m.StickerSearchCollection
340340
);
341+
342+
exportModule(
343+
exports,
344+
{
345+
BusinessProfileStore: [
346+
'BusinessProfileCollectionImpl',
347+
'BusinessProfileCollection',
348+
],
349+
},
350+
(m) => m.BusinessProfileCollectionImpl || m.BusinessProfileCollection
351+
);

0 commit comments

Comments
 (0)