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