Skip to content

Commit

Permalink
docs: Updated WhatsApp version reference
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Jan 11, 2023
1 parent aad5d3b commit 2363c09
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/whatsapp/collections/LiveLocationCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,7 @@ Object.defineProperty(fallback, 'LiveLocationCollectionImpl', {
},
});

/**
* @whatsapp >= 2.2301.5
*/
webpack.injectFallbackModule('LiveLocationCollection', fallback);
3 changes: 3 additions & 0 deletions src/whatsapp/functions/sendJoinGroupViaInvite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ exportModule(
(m) => m.sendJoinGroupViaInvite
);

/**
* @whatsapp >= 2.2301.5
*/
webpack.injectFallbackModule('sendJoinGroupViaInvite', {
sendJoinGroupViaInvite: async (groupId: Wid) => {
return await joinGroupViaInvite(groupId).then((value) => value.gid);
Expand Down
3 changes: 3 additions & 0 deletions src/whatsapp/functions/sendRevokeGroupInviteCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ exportModule(
(m) => m.sendRevokeGroupInviteCode
);

/**
* @whatsapp >= 2.2301.5
*/
webpack.injectFallbackModule('sendRevokeGroupInviteCode', {
sendRevokeGroupInviteCode: async (groupId: Wid) => {
return await resetGroupInviteCode(groupId).then((value) => value.code);
Expand Down
3 changes: 3 additions & 0 deletions src/whatsapp/models/LiveLocationModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,7 @@ Object.defineProperty(fallback, 'LiveLocationModel', {
},
});

/**
* @whatsapp >= 2.2301.5
*/
webpack.injectFallbackModule('LiveLocationModel', fallback);
3 changes: 3 additions & 0 deletions src/whatsapp/models/LiveLocationParticipantModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,7 @@ Object.defineProperty(fallback, 'LiveLocationParticipantModel', {
},
});

/**
* @whatsapp >= 2.2301.5
*/
webpack.injectFallbackModule('LiveLocationParticipantModel', fallback);
3 changes: 3 additions & 0 deletions src/whatsapp/stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,7 @@ Object.defineProperty(fallback, 'LiveLocationCollection', {
},
});

/**
* @whatsapp >= 2.2301.5
*/
webpack.injectFallbackModule('LiveLocationStore', fallback);

0 comments on commit 2363c09

Please sign in to comment.