Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
markharding committed Nov 27, 2024
2 parents 29c352d + 0c2420d commit 182f15d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* This should be updated after each release
*/
const CONSTANTS = {
APP_VERSION: '5.3.0',
APP_VERSION: '5.4.0',
};

module.exports = CONSTANTS;
2 changes: 1 addition & 1 deletion src/capture/CaptureFab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const CaptureFab = ({ navigation, group, testID }: CaptureFabProps) => {
return (
<View style={styles.container}>
<CaptureFabIcon
onLongPress={IS_TENANT || group ? undefined : handleComposePress}
onLongPress={handleComposePress}
onPress={IS_TENANT || group ? handleComposePress : pushComposeCreate}
testID={testID}
/>
Expand Down
11 changes: 10 additions & 1 deletion src/modules/boost/boost-console/components/v3/Boost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ const Rejection = ({ boost }: BoostProps) => {
const wasWrongAudience =
boost.rejection_reason === BoostRejectionReason.WRONG_AUDIENCE;

if (!boost?.entity) {
return null;
}

let entity: ActivityModel | UserModel =
boost.target_location === BoostTargetLocation.newsfeed
? ActivityModel.create(boost.entity)
: UserModel.create(boost.entity);

return (
<Column horizontal="L" bottom="L">
<B1 font="bold">{t('Reason for rejection')}</B1>
Expand All @@ -69,7 +78,7 @@ const Rejection = ({ boost }: BoostProps) => {
<Link
onPress={() =>
navigation?.navigate('BoostScreenV2', {
entity: boost.entity,
entity: entity,
boostType:
boost.target_location === BoostTargetLocation.newsfeed
? 'post'
Expand Down

0 comments on commit 182f15d

Please sign in to comment.