From ad521e528e34c9c4ee76d97ee156e339dc304377 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 19 Sep 2022 14:33:22 -0500 Subject: [PATCH] ChatListItem: prevent links from being clicked --- app/soapbox/features/chats/components/chat-list-item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/chats/components/chat-list-item.tsx b/app/soapbox/features/chats/components/chat-list-item.tsx index 2a58b5733..a9b431c49 100644 --- a/app/soapbox/features/chats/components/chat-list-item.tsx +++ b/app/soapbox/features/chats/components/chat-list-item.tsx @@ -38,7 +38,7 @@ const ChatListItem: React.FC = ({ chat, chatSilence, onC weight='medium' theme='muted' truncate - className='w-full truncate-child' + className='w-full truncate-child pointer-events-none' data-testid='chat-last-message' dangerouslySetInnerHTML={{ __html: chat.last_message?.content }} />