Rocket.Chat.ReactNative/app/lib/methods/helpers/buildMessage.js

8 lines
221 B
JavaScript

import messagesStatus from '../../../constants/messagesStatus';
import normalizeMessage from './normalizeMessage';
export default message => {
message.status = messagesStatus.SENT;
return normalizeMessage(message);
};