hubot-matteruser icon indicating copy to clipboard operation
hubot-matteruser copied to clipboard

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

Open PonnyZuo opened this issue 4 years ago • 1 comments

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);
}

PonnyZuo avatar Jan 21 '21 01:01 PonnyZuo

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

loafoe avatar Apr 06 '21 12:04 loafoe