2018-02-19 21:19:39 +00:00
|
|
|
import * as types from './actionsTypes';
|
|
|
|
|
|
|
|
export function openPinnedMessages(rid) {
|
|
|
|
return {
|
|
|
|
type: types.PINNED_MESSAGES.OPEN,
|
|
|
|
rid
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function closePinnedMessages() {
|
|
|
|
return {
|
|
|
|
type: types.PINNED_MESSAGES.CLOSE
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2018-03-02 15:11:34 +00:00
|
|
|
export function pinnedMessagesReceived(messages) {
|
2018-02-19 21:19:39 +00:00
|
|
|
return {
|
2018-03-02 15:11:34 +00:00
|
|
|
type: types.PINNED_MESSAGES.MESSAGES_RECEIVED,
|
|
|
|
messages
|
2018-02-19 21:19:39 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function pinnedMessageUnpinned(messageId) {
|
|
|
|
return {
|
|
|
|
type: types.PINNED_MESSAGES.MESSAGE_UNPINNED,
|
|
|
|
messageId
|
|
|
|
};
|
|
|
|
}
|