1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Update return type for client.getRoom (#2190)

This commit is contained in:
Germain
2022-02-22 15:50:23 +00:00
committed by GitHub
parent 12e525b664
commit 55dda8420c

View File

@@ -3268,9 +3268,9 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
* has been emitted. Note in particular that other events, eg. RoomState.members
* will be emitted for a room before this function will return the given room.
* @param {string} roomId The room ID
* @return {Room} The Room or null if it doesn't exist or there is no data store.
* @return {Room|null} The Room or null if it doesn't exist or there is no data store.
*/
public getRoom(roomId: string): Room {
public getRoom(roomId: string): Room | null {
return this.store.getRoom(roomId);
}