mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 09:08:18 +00:00
Use MatrixClientPeg::safeGet in src/{stores,hooks,components/structures}/* (#10988)
This commit is contained in:
committed by
GitHub
parent
707fd9ccf0
commit
dd46db4817
@@ -74,7 +74,7 @@ export const usePermalinkEvent = (
|
||||
|
||||
const fetchRoomEvent = async (): Promise<void> => {
|
||||
try {
|
||||
const eventData = await MatrixClientPeg.get().fetchRoomEvent(
|
||||
const eventData = await MatrixClientPeg.safeGet().fetchRoomEvent(
|
||||
parseResult.roomIdOrAlias!,
|
||||
parseResult.eventId!,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user