Skip to content

Commit

Permalink
fix: replaced patch-package with yarn patch for emoji picker
Browse files Browse the repository at this point in the history
  • Loading branch information
m-doescode committed Mar 9, 2025
1 parent fb7cb63 commit 4cf6977
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 323 deletions.
Empty file.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@
"intl-pluralrules": "^2.0.1",
"mobx": "^6.13.6",
"mobx-react-lite": "^4.1.0",
"patch-package": "^8.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-error-boundary": "^5.0.0",
"react-i18next": "^15.4.1",
"react-native": "^0.78.0",
"react-native-device-info": "^14.0.4",
"react-native-drawer-layout": "^4.1.1",
"react-native-emoji-selector": "^0.2.0",
"react-native-emoji-selector": "patch:react-native-emoji-selector@npm%3A0.2.0#~/.yarn/patches/react-native-emoji-selector-npm-0.2.0-d28c8d59eb.patch",
"react-native-gesture-handler": "^2.24.0",
"react-native-get-random-values": "^1.11.0",
"react-native-keyboard-controller": "^1.16.6",
Expand Down
30 changes: 0 additions & 30 deletions patches/react-native-emoji-selector+0.2.0.patch

This file was deleted.

46 changes: 22 additions & 24 deletions src/components/common/messaging/MessageReactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,28 @@ export const MessageReactions = observer(
);
})}

<Pressable
key={`message-${msg._id}-add-reaction}`}
onPress={action(() => {
msg.channel?.havePermission('React')
? app.openAddReaction(msg)
: showToast('You cannot react to this message.');
})}
style={{
padding: commonValues.sizes.small,
borderRadius: commonValues.sizes.small,
borderColor: currentTheme.backgroundTertiary,
backgroundColor: currentTheme.backgroundSecondary,
borderWidth: commonValues.sizes.xs,
marginEnd: commonValues.sizes.small,
marginVertical: commonValues.sizes.xs,
}}>
<View style={{flexDirection: 'row'}}>
<MaterialIcon
name="add-reaction"
size={20}
color={currentTheme.foregroundPrimary}
/>
</View>
</Pressable>
{msg.channel?.havePermission('React') ? (
<Pressable
key={`message-${msg._id}-add-reaction}`}
onPress={action(() => app.openAddReaction(msg))}
style={{
padding: commonValues.sizes.small,
borderRadius: commonValues.sizes.small,
borderColor: currentTheme.backgroundTertiary,
backgroundColor: currentTheme.backgroundSecondary,
borderWidth: commonValues.sizes.xs,
marginEnd: commonValues.sizes.small,
marginVertical: commonValues.sizes.xs,
}}>
<View style={{flexDirection: 'row'}}>
<MaterialIcon
name="add-reaction"
size={20}
color={currentTheme.foregroundPrimary}
/>
</View>
</Pressable>
) : null}
</View>
);
}
Expand Down
Loading

0 comments on commit 4cf6977

Please sign in to comment.