add more types

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-07-21 10:15:05 +01:00
parent 8cacf1ff97
commit 9aff56afcc
1 changed files with 4 additions and 4 deletions

View File

@ -164,7 +164,7 @@ class RoomViewStore extends Store<ActionPayload> {
} }
} }
private async viewRoom(payload) { private async viewRoom(payload: ActionPayload) {
if (payload.room_id) { if (payload.room_id) {
const newState = { const newState = {
roomId: payload.room_id, roomId: payload.room_id,
@ -246,7 +246,7 @@ class RoomViewStore extends Store<ActionPayload> {
} }
} }
private viewRoomError(payload) { private viewRoomError(payload: ActionPayload) {
this.setState({ this.setState({
roomId: payload.room_id, roomId: payload.room_id,
roomAlias: payload.room_alias, roomAlias: payload.room_alias,
@ -255,7 +255,7 @@ class RoomViewStore extends Store<ActionPayload> {
}); });
} }
private joinRoom(payload) { private joinRoom(payload: ActionPayload) {
this.setState({ this.setState({
joining: true, joining: true,
}); });
@ -290,7 +290,7 @@ class RoomViewStore extends Store<ActionPayload> {
}); });
} }
private joinRoomError(payload) { private joinRoomError(payload: ActionPayload) {
this.setState({ this.setState({
joining: false, joining: false,
joinError: payload.err, joinError: payload.err,