mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Fix permalink to unknown event crash (#7501)
This commit is contained in:
parent
3c1ce77d48
commit
3c70aa15d1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user