import { C } from 'deltachat-node/dist/constants' ; import { msgStatus } from '../../../shared/shared-types' ; export function mapCoreMsgStatus2String ( state ) { switch ( state ) { case C . DC_STATE_OUT_FAILED : return 'error' ; case C . DC_STATE_OUT_PENDING : return 'sending' ; case C . DC_STATE_OUT_PREPARING : return 'sending' ; case C . DC_STATE_OUT_DRAFT : return 'draft' ; case C . DC_STATE_OUT_DELIVERED : return 'delivered' ; case C . DC_STATE_OUT_MDN_RCVD : return 'read' ; case C . DC_STATE_IN_FRESH : return 'delivered' ; case C . DC_STATE_IN_SEEN : return 'delivered' ; case C . DC_STATE_IN_NOTICED : return 'read' ; default : return '' ; } }