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

26 lines
335 B
JavaScript
Raw Normal View History

2017-11-20 22:18:00 +00:00
import * as types from './actionsTypes';
2018-12-05 20:52:08 +00:00
export function leaveRoom(rid, t) {
return {
type: types.ROOM.LEAVE,
2018-12-05 20:52:08 +00:00
rid,
t
};
}
2018-12-05 20:52:08 +00:00
export function eraseRoom(rid, t) {
return {
type: types.ROOM.ERASE,
2018-12-05 20:52:08 +00:00
rid,
t
};
}
2019-04-08 12:35:28 +00:00
export function userTyping(rid, status = true) {
2017-11-21 16:55:32 +00:00
return {
2017-11-21 17:09:22 +00:00
type: types.ROOM.USER_TYPING,
2019-04-08 12:35:28 +00:00
rid,
2017-11-21 16:55:32 +00:00
status
};
}