Fixed the scroll-to-bottom bug for chat messages.

Fixes the bug so that the app scrolls to the bottom of the chat window whenever new messages are displayed (both your own messages and others).