9 lines
292 B
TypeScript
9 lines
292 B
TypeScript
import { IMessage } from '../../../definitions';
|
|
import messagesStatus from '../../../constants/messagesStatus';
|
|
import normalizeMessage from './normalizeMessage';
|
|
|
|
export default (message: IMessage): IMessage => {
|
|
message.status = messagesStatus.SENT;
|
|
return normalizeMessage(message);
|
|
};
|