2018-02-19 21:19:39 +00:00
|
|
|
import * as types from './actionsTypes';
|
|
|
|
|
|
|
|
export function openStarredMessages(rid) {
|
|
|
|
return {
|
|
|
|
type: types.STARRED_MESSAGES.OPEN,
|
|
|
|
rid
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
};
|
|
|
|
}
|