verdnatura-chat/app/views/RoomView/services/getMessages.js

11 lines
240 B
JavaScript

import RocketChat from '../../../lib/rocketchat';
const getMessages = room => {
if (room.lastOpen) {
return RocketChat.loadMissedMessages(room);
} else {
return RocketChat.loadMessagesForRoom(room);
}
};
export default getMessages;