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) {
|
2018-03-23 16:49:51 +00:00
|
|
|
return {
|
|
|
|
type: types.ROOM.LEAVE,
|
2018-12-05 20:52:08 +00:00
|
|
|
rid,
|
|
|
|
t
|
2018-03-23 16:49:51 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-03-06 13:13:24 +00:00
|
|
|
export function deleteRoomInit(rid, t) {
|
2018-03-29 17:55:37 +00:00
|
|
|
return {
|
2020-03-06 13:13:24 +00:00
|
|
|
type: types.ROOM.DELETE_INIT,
|
2018-12-05 20:52:08 +00:00
|
|
|
rid,
|
|
|
|
t
|
2018-03-29 17:55:37 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-03-06 13:13:24 +00:00
|
|
|
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
|
|
|
|
};
|
|
|
|
}
|