psybuzz/goldenconversations — pull request #32 by tonyxj (2014-10-15 16:20:10+00:00)
Title: Fix user color when submitting new message

Right now, when the user submits a new message in an ongoing conversation, the user color circle is not showing. The reason is that the user color value is not created due to the user name string having an extra space at the end. This causes the user string to be not matched up with the user string in the list of users, where the original colors are stored.

I couldn't figure out why the extra space is added to ``$currentShape.text()`` on line 80, but I did managed to fix the problem by using the ``$.trim`` function to remove the extra space.