2018-03-23 16:49:51 +00:00
|
|
|
import * as types from './actionsTypes';
|
|
|
|
|
2018-04-24 19:34:03 +00:00
|
|
|
export function openRoomFiles(rid, limit) {
|
2018-03-23 16:49:51 +00:00
|
|
|
return {
|
|
|
|
type: types.ROOM_FILES.OPEN,
|
2018-04-24 19:34:03 +00:00
|
|
|
rid,
|
|
|
|
limit
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function readyRoomFiles() {
|
|
|
|
return {
|
|
|
|
type: types.ROOM_FILES.READY
|
2018-03-23 16:49:51 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function closeRoomFiles() {
|
|
|
|
return {
|
|
|
|
type: types.ROOM_FILES.CLOSE
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function roomFilesReceived(messages) {
|
|
|
|
return {
|
|
|
|
type: types.ROOM_FILES.MESSAGES_RECEIVED,
|
|
|
|
messages
|
|
|
|
};
|
|
|
|
}
|