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

32 lines
433 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
};
}
export function deleteRoomInit(rid, t) {
return {
type: types.ROOM.DELETE_INIT,
2018-12-05 20:52:08 +00:00
rid,
t
};
}
export function deleteRoomFinish() {
return {
type: types.ROOM.DELETE_FINISH
};
}
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
};
}