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