|
@@ -1789,6 +1789,26 @@ const GroupChatScreen = ({ route }: { route: any }) => {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ let replyText = replaceMentionsWithNames(currentMessage.replyMessage.text);
|
|
|
|
|
+
|
|
|
|
|
+ const replyMsg = giftedMessages.find((m) => m._id === currentMessage.replyMessage?.id);
|
|
|
|
|
+
|
|
|
|
|
+ if (replyMsg && replyMsg?.attachment && replyMsg?.attachment?.filename) {
|
|
|
|
|
+ replyText = replyMsg.attachment.filename;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (replyMsg && replyMsg.image) {
|
|
|
|
|
+ replyText = '🏞️photo';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (replyMsg && replyMsg.video) {
|
|
|
|
|
+ replyText = '📽️video';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (replyMsg && replyMsg.attachment?.filetype === 'nomadmania/location') {
|
|
|
|
|
+ replyText = '📍location';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<TouchableOpacity
|
|
<TouchableOpacity
|
|
|
style={[
|
|
style={[
|
|
@@ -1829,7 +1849,7 @@ const GroupChatScreen = ({ route }: { route: any }) => {
|
|
|
}
|
|
}
|
|
|
]}
|
|
]}
|
|
|
>
|
|
>
|
|
|
- {replaceMentionsWithNames(currentMessage.replyMessage.text)}
|
|
|
|
|
|
|
+ {replyText}
|
|
|
</Text>
|
|
</Text>
|
|
|
</View>
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
</TouchableOpacity>
|
|
@@ -2149,7 +2169,7 @@ const GroupChatScreen = ({ route }: { route: any }) => {
|
|
|
<TextInput
|
|
<TextInput
|
|
|
ref={textInputRef}
|
|
ref={textInputRef}
|
|
|
multiline
|
|
multiline
|
|
|
- textAlignVertical="center"
|
|
|
|
|
|
|
+ textAlignVertical="center"
|
|
|
placeholder=""
|
|
placeholder=""
|
|
|
value={props.text}
|
|
value={props.text}
|
|
|
onChangeText={props.onTextChanged}
|
|
onChangeText={props.onTextChanged}
|