<div class="topic">
  <a href="#" editable-text="room.topic" buttons="no" onaftersave="setRoomTopic()">{{ room.topic || 'Pick a topic for this room' }}</a>
</div>
<div id="messages" ng-scroll-end="scrolledToBottom($event, isEnded)">
  <div ng-repeat="message in messages track by $index" class="message-row">
    <div ng-switch="message.o">
      <div ng-switch-when="msg">
        <div ng-include="src='views/txt-message.html'"></div>
      </div>
      <div ng-switch-when="joined">
        <div ng-include="sr