Skip to content

Commit 9c1f5fe

Browse files
committed
fix: set showMoreOptions to true on giphy cancel and on resetInput
1 parent 9fd798d commit 9c1f5fe

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

package/src/components/MessageInput/MessageInput.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ const MessageInputWithContext = <
197197
sending,
198198
sendMessageAsync,
199199
setGiphyActive,
200+
setShowMoreOptions,
200201
ShowThreadMessageInChannelButton,
201202
suggestions,
202203
suggestionsTitle,
@@ -534,6 +535,7 @@ const MessageInputWithContext = <
534535
disabled={disabled}
535536
onPress={() => {
536537
setGiphyActive(false);
538+
setShowMoreOptions(true);
537539
}}
538540
testID='close-button'
539541
>
@@ -773,6 +775,7 @@ export const MessageInput = <
773775
sending,
774776
sendMessageAsync,
775777
setGiphyActive,
778+
setShowMoreOptions,
776779
showMoreOptions,
777780
ShowThreadMessageInChannelButton,
778781
uploadNewImage,
@@ -820,6 +823,7 @@ export const MessageInput = <
820823
sending,
821824
sendMessageAsync,
822825
setGiphyActive,
826+
setShowMoreOptions,
823827
showMoreOptions,
824828
ShowThreadMessageInChannelButton,
825829
suggestions,

package/src/contexts/messageInputContext/MessageInputContext.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ export const MessageInputProvider = <
590590
const resetInput = (pendingAttachments: Attachment<At>[] = []) => {
591591
setFileUploads([]);
592592
setGiphyActive(false);
593+
setShowMoreOptions(true);
593594
setImageUploads([]);
594595
setMentionedUsers([]);
595596
setNumberOfUploads(

0 commit comments

Comments
 (0)