File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ const MessageSimpleWithContext = (props: MessageSimpleWithContextProps) => {
5353 groupedByUser,
5454 handleAction,
5555 handleOpenThread,
56- // handleRetry,
5756 highlighted,
5857 isMessageAIGenerated,
5958 isMyMessage,
@@ -127,16 +126,10 @@ const MessageSimpleWithContext = (props: MessageSimpleWithContextProps) => {
127126
128127 let handleClick : ( ( ) => void ) | undefined = undefined ;
129128
130- // todo: should we keep the behavior with click-on-blubble?
131- // if (allowRetry) {
132- // handleClick = () => handleRetry(message);
133- // } else if (isBounced) {
134- // handleClick = () => setIsBounceDialogOpen(true);
135- // } else if (isEdited) {
136- // handleClick = () => setEditedTimestampOpen((prev) => !prev);
137- // }
138-
139- if ( isEdited ) {
129+ // todo: should we keep the behavior with click-on-blubble -> show the MessageBounceModal?
130+ if ( isBounced ) {
131+ handleClick = ( ) => setIsBounceDialogOpen ( true ) ;
132+ } else if ( isEdited ) {
140133 handleClick = ( ) => setEditedTimestampOpen ( ( prev ) => ! prev ) ;
141134 }
142135
You can’t perform that action at this time.
0 commit comments