From 9f2789223f87774eda69caa06e96484a2558aa9f Mon Sep 17 00:00:00 2001
From: Ajay Bura <32841439+ajbura@users.noreply.github.com>
Date: Sat, 14 Oct 2023 09:48:38 +0530
Subject: [PATCH] fix up arrow edit not working sometime

---
 src/app/organisms/room/RoomTimeline.tsx | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/app/organisms/room/RoomTimeline.tsx b/src/app/organisms/room/RoomTimeline.tsx
index f77c6fd0..65ea9ac5 100644
--- a/src/app/organisms/room/RoomTimeline.tsx
+++ b/src/app/organisms/room/RoomTimeline.tsx
@@ -694,14 +694,7 @@ export function RoomTimeline({ room, eventId, roomInputRef, editor }: RoomTimeli
           );
           const editableEvtId = editableEvt?.getId();
           if (!editableEvtId) return;
-
-          const editMsgElement = scrollRef.current?.querySelector(
-            `[data-message-id="${editableEvtId}"]`
-          ) as HTMLElement | null;
-
-          if (editMsgElement) {
-            setEditId(editableEvtId);
-          }
+          setEditId(editableEvtId);
         }
       },
       [mx, room, editor]