Next chapter for diversion only on Timeout diversion
This commit is contained in:
parent
bf12323f41
commit
23cf100df7
1 changed files with 2 additions and 8 deletions
|
@ -535,10 +535,7 @@ class Diversion(object):
|
|||
|
||||
story.logger.info(f"Diverge: No response {self.id} {story.stats}")
|
||||
|
||||
# fall back to the next message to return on.
|
||||
# TODO: maybe, if not chapter is found, the diversion should be
|
||||
# blocked alltogether?
|
||||
self.returnMessage = story.getNextChapterForMsg(msgTo) or msgTo
|
||||
self.returnMessage = msgTo
|
||||
|
||||
await story.setCurrentMessage(msg)
|
||||
story.currentDiversion = self
|
||||
|
@ -586,10 +583,7 @@ class Diversion(object):
|
|||
story.logger.critical(f"Not a valid message id for diversion: {self.params['msgId']}")
|
||||
return
|
||||
|
||||
# fall back to the next message to return on.
|
||||
# TODO: maybe, if not chapter is found, the diversion should be
|
||||
# blocked alltogether?
|
||||
self.returnMessage = story.getNextChapterForMsg(msgTo) or msgTo
|
||||
self.returnMessage = msgTo
|
||||
await story.setCurrentMessage(msg)
|
||||
story.currentDiversion = self
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue