Fix permalink to unknown event crash (#7501)

This commit is contained in:
Germain 2022-01-10 16:44:24 +00:00 committed by GitHub
parent 3c1ce77d48
commit 3c70aa15d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}