Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send multiple messages with .send and messageRoom with one async function but still miss order. #102

Open
PonnyZuo opened this issue Jan 21, 2021 · 1 comment

Comments

@PonnyZuo
Copy link

I use async function and await messageRoom.But I still can't correct my messages' order. Is there any way to solve this?

async function sendmultiple (robot, msg,msg2,msg3) {
    const roomID = roomSession.roomID;
    await robot.messageRoom(roomID , msg);
    await robot.messageRoom(roomID , msg2);
    await robot.messageRoom(roomID , msg3);
}
@loafoe
Copy link
Owner

loafoe commented Apr 6, 2021

hi @PonnyZuo AFAIK the mattermost server does not guarantee order of messages if they are send in close proximity of each other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants