2018-02-19 21:19:39 +00:00
|
|
|
import * as types from './actionsTypes';
|
|
|
|
|
2018-04-24 19:34:03 +00:00
|
|
|
export function openStarredMessages(rid, limit) {
|
2018-02-19 21:19:39 +00:00
|
|
|
return {
|
|
|
|
type: types.STARRED_MESSAGES.OPEN,
|
2018-04-24 19:34:03 +00:00
|
|
|
rid,
|
|
|
|
limit
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function readyStarredMessages() {
|
|
|
|
return {
|
|
|
|
type: types.STARRED_MESSAGES.READY
|
2018-02-19 21:19:39 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function closeStarredMessages() {
|
|
|
|
return {
|
|
|
|
type: types.STARRED_MESSAGES.CLOSE
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2018-03-02 15:11:34 +00:00
|
|
|
export function starredMessagesReceived(messages) {
|
2018-02-19 21:19:39 +00:00
|
|
|
return {
|
2018-03-02 15:11:34 +00:00
|
|
|
type: types.STARRED_MESSAGES.MESSAGES_RECEIVED,
|
|
|
|
messages
|
2018-02-19 21:19:39 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function starredMessageUnstarred(messageId) {
|
|
|
|
return {
|
|
|
|
type: types.STARRED_MESSAGES.MESSAGE_UNSTARRED,
|
|
|
|
messageId
|
|
|
|
};
|
|
|
|
}
|