2021-06-15 20:13:42 +00:00
|
|
|
import RocketChat from '../../../lib/rocketchat';
|
|
|
|
|
2021-10-01 18:12:19 +00:00
|
|
|
const getMessages = room => {
|
2021-06-15 20:13:42 +00:00
|
|
|
if (room.lastOpen) {
|
|
|
|
return RocketChat.loadMissedMessages(room);
|
|
|
|
} else {
|
|
|
|
return RocketChat.loadMessagesForRoom(room);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
export default getMessages;
|