From 3c70aa15d1c2d779b5b6df554ad2c00540b3a690 Mon Sep 17 00:00:00 2001 From: Germain Date: Mon, 10 Jan 2022 16:44:24 +0000 Subject: [PATCH] Fix permalink to unknown event crash (#7501) --- src/utils/EventUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/EventUtils.ts b/src/utils/EventUtils.ts index 4d390db1ab..f48e720e70 100644 --- a/src/utils/EventUtils.ts +++ b/src/utils/EventUtils.ts @@ -190,7 +190,7 @@ export async function fetchInitialEvent( const eventData = await client.fetchRoomEvent(roomId, eventId); initialEvent = new MatrixEvent(eventData); } catch (e) { - logger.warn("Could not find initial event: " + initialEvent.threadRootId); + logger.warn("Could not find initial event: " + eventId); initialEvent = null; }