hubot-matteruser
hubot-matteruser copied to clipboard
Send multiple messages with .send and messageRoom with one async function but still miss order.
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);
}
hi @PonnyZuo AFAIK the mattermost server does not guarantee order of messages if they are send in close proximity of each other