Rocket.Chat.ReactNative/app/actions/room.js

38 lines
530 B
JavaScript
Raw Normal View History

2017-11-20 22:18:00 +00:00
import * as types from './actionsTypes';
export function removeUserTyping(username) {
return {
type: types.ROOM.REMOVE_USER_TYPING,
username
};
}
export function typing(data) {
return {
type: types.ROOM.USER_TYPING,
...data
};
}
2017-11-21 16:55:32 +00:00
2017-11-20 22:18:00 +00:00
export function addUserTyping(username) {
return {
type: types.ROOM.ADD_USER_TYPING,
username
};
}
2017-11-21 16:55:32 +00:00
export function openRoom(room) {
return {
type: types.ROOM.OPEN,
room
};
}
export function imTyping(status = true) {
return {
type: types.ROOM.IM_TYPING,
status
};
}