Skip to content

Commit

Permalink
Prevent sending of duplicate tips in hyperchats (#3035)
Browse files Browse the repository at this point in the history
Co-authored-by: miko <[email protected]>
  • Loading branch information
keikari and miko authored Jan 8, 2024
1 parent fc114dd commit 88210c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/component/commentCreate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
selectCommentsDisabledSettingForChannelId,
selectLivestreamChatMembersOnlyForChannelId,
selectMembersOnlyCommentsForChannelId,
selectFetchingCreatorSettings,
} from 'redux/selectors/comments';
import { getChannelIdFromClaim } from 'util/claim';
import { doOpenModal } from 'redux/actions/app';
Expand Down Expand Up @@ -63,6 +64,7 @@ const select = (state, props) => {
claimIsMine: selectClaimIsMine(state, claim),
hasChannels: selectHasChannels(state),
isFetchingChannels: selectFetchingMyChannels(state),
isFetchingCreatorSettings: selectFetchingCreatorSettings(state),
myChannelClaimIds: selectMyChannelClaimIds(state),
myCommentedChannelIds: selectMyCommentedChannelIdsForId(state, claim?.claim_id),
preferredCurrency: selectPreferredCurrency(state),
Expand Down
3 changes: 3 additions & 0 deletions ui/component/commentCreate/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ type Props = {
claimIsMine: boolean,
embed?: boolean,
isFetchingChannels: boolean,
isFetchingCreatorSettings: boolean,
isNested: boolean,
isReply: boolean,
isLivestream?: boolean,
Expand Down Expand Up @@ -123,6 +124,7 @@ export function CommentCreate(props: Props) {
embed,
hasChannels,
isFetchingChannels,
isFetchingCreatorSettings,
isLivestream,
isNested,
isReply,
Expand Down Expand Up @@ -186,6 +188,7 @@ export function CommentCreate(props: Props) {
deletedComment ||
isSubmitting ||
isFetchingChannels ||
isFetchingCreatorSettings ||
hasNothingToSumbit ||
disableInput;
const minSuper = (channelSettings && channelSettings.min_tip_amount_super_chat) || 0;
Expand Down

0 comments on commit 88210c3

Please sign in to comment.