style: fix prettier formatting in RoomInput

This commit is contained in:
Evie Gauthier committed 2026-03-15 13:58:13 -04:00
1 parent b74cb0bb28
commit df8e5e0cc7
1 file changed
+3 -4
+3 -4
View File
@@ -180,9 +180,7 @@ const getLatestThreadEventId = (room: Room, threadRootId: string): string => {
.getEvents()
.filter(
(ev) =>
ev.threadRootId === threadRootId &&
ev.getId() !== threadRootId &&
!reactionOrEditEvent(ev)
ev.threadRootId === threadRootId && ev.getId() !== threadRootId && !reactionOrEditEvent(ev)
);
if (liveEvents.length > 0) {
return liveEvents[liveEvents.length - 1].getId() ?? threadRootId;
@@ -497,7 +495,8 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
const contents = fulfilledPromiseSettledResult(await Promise.allSettled(contentsPromises));
if (contents.length > 0) {
const replyContent = plainText?.length === 0 ? getReplyContent(replyDraft, room) : undefined;
const replyContent =
plainText?.length === 0 ? getReplyContent(replyDraft, room) : undefined;
if (replyContent) contents[0]['m.relates_to'] = replyContent;
if (threadRootId) {
setReplyDraft({