Chat view help needed!

I am using Chat view component to add messages that are loaded from firebase.
It is loading chat but adds some messages twice or thrice.
I am doing this -



Can anyone tell me what is the problem?

First things first, lets clean up your blocks.

This is not necessary. All you need is the contains block. The is true is redundant. The block is a test, meaning it returns true or false.

image

If it is true it meets the condition.

Second block area is over cumbersome as well.

You can use this block setup.

image

What you are doing here is neutrilizing the text first, You dont need any of the options because the text is assessed based on a neutral upercase.

Start with that to clean up the blocks and logic and see where things are.

5 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.