2018-02-19 21:19:39 +00:00
|
|
|
import * as types from './actionsTypes';
|
|
|
|
|
2018-04-24 19:34:03 +00:00
|
|
|
export function openPinnedMessages(rid, limit) {
|
2018-02-19 21:19:39 +00:00
|
|
|
return {
|
|
|
|
type: types.PINNED_MESSAGES.OPEN,
|
2018-04-24 19:34:03 +00:00
|
|
|
rid,
|
|
|
|
limit
|
2018-02-19 21:19:39 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2018-04-24 19:34:03 +00:00
|
|
|
export function readyPinnedMessages() {
|
|
|
|
return {
|
|
|
|
type: types.PINNED_MESSAGES.READY
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-02-19 21:19:39 +00:00
|
|
|
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
|
|
|
|
};
|
|
|
|
}
|