update comment

This commit is contained in:
Half-Shot 2024-11-12 17:04:28 +00:00
parent 3b272181ae
commit 7a05ad9f79

View File

@ -133,7 +133,7 @@ export const ReactionsProvider = ({
EventType.Reaction, EventType.Reaction,
); );
let allEvents = relations?.getRelations() ?? []; let allEvents = relations?.getRelations() ?? [];
// We might not have synced this far. // If we found no relations for this event, fetch via fetchRelations.
if (allEvents.length === 0) { if (allEvents.length === 0) {
const res = await room.client.fetchRelations( const res = await room.client.fetchRelations(
room.roomId, room.roomId,