Skip to content

Commit

Permalink
Update return type for client.getRoom (#2190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain authored Feb 22, 2022
1 parent 12e525b commit 55dda84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 55dda84

Please sign in to comment.