vn-verdnaturachat/app/views/RoomView/services/getMessages.js

11 lines
242 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;