You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1,2,3,4,5,6,7].forEach(i=>{session.sendQueued(i.toString())});letmidware=ctx.middleware((session_1,next)=>{if(session_1.content="stop"){midware()//here -> it doesn't work properlysession.cancelQueued(1000)return"已停止。"}elsereturnnext()},true);
Describe the bug
在调用连续多个 session.sendQueued 后,如果中途执行 session.cancelQueued ,则之后的所有消息并不会都被取消发送。
Steps to reproduce
例:
Expected behavior
在该方法执行后,停止之后所有信息的发送
实际行为:只会取消一条,且传入的参数
delay
会应用在下一条(被取消的那一条的下一条)的发送上;之后的消息发送并不受影响。Screenshots
No response
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: