TiSMSView icon indicating copy to clipboard operation
TiSMSView copied to clipboard

Race problem with sendMessage - receiveMessage

Open sindresorhus opened this issue 13 years ago • 3 comments

If I do a .receiveMessage() right after an .sendMessage(), the scrolling is set on the .sendMessage() and not on the last item .receiveMessage(), like it should, so the last .receiveMessage() is not shown, and I have to scroll to see it.

sindresorhus avatar Sep 16 '11 22:09 sindresorhus

I will test it over the weekend and do the best I can to fix it. For future bugs like this one, please provide a sample code so that I can just copy, paste, and run. Thanks.

pec1985 avatar Sep 16 '11 23:09 pec1985

Testcase

You'll notice that the last "received" message is not scrolled into view.

sindresorhus avatar Sep 17 '11 00:09 sindresorhus

Not sure how to fix it. For now, set the animation to false until all the messages are shown, then set the animation back to true.

I will look into it.

pec1985 avatar Sep 20 '11 00:09 pec1985