mirror of https://github.com/vector-im/riot-web
parent
8cacf1ff97
commit
9aff56afcc
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue