Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import {
|
||||
EventType,
|
||||
MatrixEvent,
|
||||
RelationType,
|
||||
Room,
|
||||
RoomEvent,
|
||||
} from 'matrix-js-sdk';
|
||||
import { EventType, MatrixEvent, RelationType, Room, RoomEvent } from 'matrix-js-sdk';
|
||||
import { RelationsEvent } from 'matrix-js-sdk/lib/models/relations';
|
||||
import { MessageEvent } from '../../../types/matrix/room';
|
||||
import { useMatrixClient } from '../../hooks/useMatrixClient';
|
||||
@@ -115,13 +109,13 @@ export function useForumMessageReactions(room: Room, mEvent: MatrixEvent | undef
|
||||
mx.sendEvent(
|
||||
room.roomId,
|
||||
MessageEvent.Reaction as never,
|
||||
getReactionContent(targetEventId, key, rShortcode)
|
||||
getReactionContent(targetEventId, key, rShortcode),
|
||||
).finally(() => {
|
||||
bumpRelations();
|
||||
window.setTimeout(bumpRelations, 250);
|
||||
});
|
||||
},
|
||||
[bumpRelations, mx, room.roomId, roomTimelineSet]
|
||||
[bumpRelations, mx, room.roomId, roomTimelineSet],
|
||||
);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user