tinderbox
tinderbox copied to clipboard
Multiple height in MessageTree
Hi, I try to build a multiple height Tree. I'm sure about the format of my tree. Unfortunately it create a stop-gap in every conversation instead of sending the second message of my tree. Maybe in MessageReplyTask.scala you did something wrong for multiple height Trees in :
case Some(treeRoot) =>
FunMessages.messages.find(_.value == treeRoot) match {
case None =>
createStopGap(m, true)
Logger.debug("stopGap number 1")
case Some(tree) =>
val sentiments = MessageUtil.assignSentimentDirection(MessageUtil.filterSenderMessages(userId, m.messages)).map(_._2)
Logger.debug("[tinderbot bail] Sentiment directions are %s." format sentiments)
Tell me if you see something, because I can't figure out why it's not working.
Thank you
Strange, it could be a bug in the logic that loops through the tree. Going to be a while until I have a chance to look at this. Perhaps someone else can take a quick look and jump in.