Skip to content

Commit 65e0613

Browse files
committed
fix: replaced patch-package with yarn patch for emoji picker
1 parent fb7cb63 commit 65e0613

File tree

5 files changed

+29
-323
lines changed

5 files changed

+29
-323
lines changed

.yarn/patches/react-native-emoji-selector-npm-0.2.0-d28c8d59eb.patch

Whitespace-only changes.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,14 @@
3737
"intl-pluralrules": "^2.0.1",
3838
"mobx": "^6.13.6",
3939
"mobx-react-lite": "^4.1.0",
40-
"patch-package": "^8.0.0",
4140
"react": "^19.0.0",
4241
"react-dom": "^19.0.0",
4342
"react-error-boundary": "^5.0.0",
4443
"react-i18next": "^15.4.1",
4544
"react-native": "^0.78.0",
4645
"react-native-device-info": "^14.0.4",
4746
"react-native-drawer-layout": "^4.1.1",
48-
"react-native-emoji-selector": "^0.2.0",
47+
"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",
4948
"react-native-gesture-handler": "^2.24.0",
5049
"react-native-get-random-values": "^1.11.0",
5150
"react-native-keyboard-controller": "^1.16.6",

patches/react-native-emoji-selector+0.2.0.patch

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/components/common/messaging/MessageReactions.tsx

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -69,30 +69,28 @@ export const MessageReactions = observer(
6969
);
7070
})}
7171

72-
<Pressable
73-
key={`message-${msg._id}-add-reaction}`}
74-
onPress={action(() => {
75-
msg.channel?.havePermission('React')
76-
? app.openAddReaction(msg)
77-
: showToast('You cannot react to this message.');
78-
})}
79-
style={{
80-
padding: commonValues.sizes.small,
81-
borderRadius: commonValues.sizes.small,
82-
borderColor: currentTheme.backgroundTertiary,
83-
backgroundColor: currentTheme.backgroundSecondary,
84-
borderWidth: commonValues.sizes.xs,
85-
marginEnd: commonValues.sizes.small,
86-
marginVertical: commonValues.sizes.xs,
87-
}}>
88-
<View style={{flexDirection: 'row'}}>
89-
<MaterialIcon
90-
name="add-reaction"
91-
size={20}
92-
color={currentTheme.foregroundPrimary}
93-
/>
94-
</View>
95-
</Pressable>
72+
{msg.channel?.havePermission('React') ? (
73+
<Pressable
74+
key={`message-${msg._id}-add-reaction}`}
75+
onPress={action(() => app.openAddReaction(msg))}
76+
style={{
77+
padding: commonValues.sizes.small,
78+
borderRadius: commonValues.sizes.small,
79+
borderColor: currentTheme.backgroundTertiary,
80+
backgroundColor: currentTheme.backgroundSecondary,
81+
borderWidth: commonValues.sizes.xs,
82+
marginEnd: commonValues.sizes.small,
83+
marginVertical: commonValues.sizes.xs,
84+
}}>
85+
<View style={{flexDirection: 'row'}}>
86+
<MaterialIcon
87+
name="add-reaction"
88+
size={20}
89+
color={currentTheme.foregroundPrimary}
90+
/>
91+
</View>
92+
</Pressable>
93+
) : null}
9694
</View>
9795
);
9896
}

0 commit comments

Comments
 (0)