Skip to content

Commit

Permalink
fix: Fixed send list message (close #1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Mar 23, 2024
1 parent 486df99 commit 5b4827f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/chat/functions/prepareMessageButtons.ts
Expand Up @@ -332,10 +332,14 @@ webpack.onFullReady(() => {
});

wrapModuleFunction(createFanoutMsgStanza, async (func, ...args) => {
const [, , proto] = args;

let buttonNode: websocket.WapNode | null = null;

/**
* In version 2.2411.x the order of the proto arguments was changed,

Check failure on line 338 in src/chat/functions/prepareMessageButtons.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
* before it was the third argument, now it is the second
*/
const proto = args[1].id ? args[2] : args[1];

if (proto.buttonsMessage) {
buttonNode = websocket.smax('buttons');
} else if (proto.listMessage) {
Expand Down

0 comments on commit 5b4827f

Please sign in to comment.