Only show message/reaction sent toast for 1:1 replies

This commit is contained in:
Josh Perez 2022-08-24 17:39:44 -04:00 committed by GitHub
parent 981bbf1a3f
commit 1aa7d4cadb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -756,16 +756,16 @@ export const StoryViewer = ({
onReactToStory(emoji, story); onReactToStory(emoji, story);
if (!isGroupStory) { if (!isGroupStory) {
setHasStoryViewsNRepliesModal(false); setHasStoryViewsNRepliesModal(false);
showToast(ToastType.StoryReact);
} }
setReactionEmoji(emoji); setReactionEmoji(emoji);
showToast(ToastType.StoryReact);
}} }}
onReply={(message, mentions, replyTimestamp) => { onReply={(message, mentions, replyTimestamp) => {
if (!isGroupStory) { if (!isGroupStory) {
setHasStoryViewsNRepliesModal(false); setHasStoryViewsNRepliesModal(false);
showToast(ToastType.StoryReply);
} }
onReplyToStory(message, mentions, replyTimestamp, story); onReplyToStory(message, mentions, replyTimestamp, story);
showToast(ToastType.StoryReply);
}} }}
onSetSkinTone={onSetSkinTone} onSetSkinTone={onSetSkinTone}
onTextTooLong={onTextTooLong} onTextTooLong={onTextTooLong}