switch(streamItem.type) {
      case 'message':
        conversation.messages.push(streamItem);
      break;
      case 'assignmentevent':