Fixes

* Replaced 0 with ChatMessageType.User for readability
* Added comment to explain suspicious code for appending
  new messages