tinderbox icon indicating copy to clipboard operation
tinderbox copied to clipboard

Multiple height in MessageTree

Open AnthonyTuil opened this issue 10 years ago • 1 comments

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

AnthonyTuil avatar Feb 17 '15 16:02 AnthonyTuil

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.

crockpotveggies avatar Feb 19 '15 20:02 crockpotveggies