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

8 lines
223 B
JavaScript

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