vn-verdnaturachat/app/actions/room.js

46 lines
597 B
JavaScript
Raw Normal View History

2017-11-20 22:18:00 +00:00
import * as types from './actionsTypes';
export function subscribeRoom(rid) {
return {
type: types.ROOM.SUBSCRIBE,
rid
};
}
export function unsubscribeRoom(rid) {
return {
type: types.ROOM.UNSUBSCRIBE,
rid
};
}
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 deleteRoom(rid, t) {
return {
type: types.ROOM.DELETE,
2018-12-05 20:52:08 +00:00
rid,
t
};
}
export function removedRoom() {
return {
type: types.ROOM.REMOVED
};
}
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
};
}