Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

convo.repeat() is not working if there are more questions into current thread. #897

Closed
KarlisJ opened this issue Jun 23, 2017 · 3 comments
Closed

Comments

@KarlisJ
Copy link

KarlisJ commented Jun 23, 2017

This looks like a bug to me. Tested a lot and found that if I use

convo.sayFirst('something wrong, lets repeat');
convo.repeat();
convo.next();

it repeats the question only if it is the last into queue of given thread. If there are any more questions (or messages) then user get the sayFirst message but then jumps to next question.

As I am creating single thread for every question I was able to use convo.trasitionTo('current_thread', 'something wrong, lets repeat') where current_thread is the one where the question is. Still, something is not right with that convo.repeat()

@Mickey248
Copy link

this is a good thing

@tdelam
Copy link

tdelam commented Apr 24, 2018

I noticed the same thing here as well... any suggestions or workarounds? The transitionTo workaround is not displaying the message, the question just repeats.

@benbrown
Copy link
Contributor

You should definitely not use sayFirst and repeat in the same turn. Both modify the message queue - and in fact, repeat will call sayFirst in some cases.

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

No branches or pull requests

5 participants