mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-25 11:13:41 +00:00
Use MatrixClientPeg::safeGet for strict typing (#10989)
This commit is contained in:
committed by
GitHub
parent
d64018ce26
commit
9b5b053148
@@ -149,7 +149,7 @@ export class CapabilityText {
|
||||
return { primary: _t("The above, but in any room you are joined or invited to as well") };
|
||||
} else {
|
||||
const roomId = getTimelineRoomIDFromCapability(capability);
|
||||
const room = MatrixClientPeg.get().getRoom(roomId);
|
||||
const room = MatrixClientPeg.safeGet().getRoom(roomId);
|
||||
return {
|
||||
primary: _t(
|
||||
"The above, but in <Room /> as well",
|
||||
|
||||
Reference in New Issue
Block a user