|
@@ -200,23 +200,35 @@ const MoreModal = () => {
|
|
|
</Text>
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
- <View style={styles.optionsContainer}>
|
|
|
- <TouchableOpacity style={styles.option} onPress={handleMute}>
|
|
|
- <Text style={styles.optionText}>{chatData.muted === 1 ? 'Unmute' : 'Mute'}</Text>
|
|
|
- <BellSlashIcon fill={Colors.DARK_BLUE} />
|
|
|
- </TouchableOpacity>
|
|
|
- </View>
|
|
|
+ {chatData?.userType === 'normal' && (
|
|
|
+ <View style={styles.optionsContainer}>
|
|
|
+ <TouchableOpacity style={styles.option} onPress={handleMute}>
|
|
|
+ <Text style={styles.optionText}>{chatData.muted === 1 ? 'Unmute' : 'Mute'}</Text>
|
|
|
+ <BellSlashIcon fill={Colors.DARK_BLUE} />
|
|
|
+ </TouchableOpacity>
|
|
|
+ </View>
|
|
|
+ )}
|
|
|
|
|
|
<View style={[styles.optionsContainer, { paddingVertical: 0, gap: 0 }]}>
|
|
|
- <TouchableOpacity style={[styles.option, styles.dangerOption]} onPress={handleReport}>
|
|
|
- <Text style={[styles.optionText, styles.dangerText]}>Report {name}</Text>
|
|
|
- <MegaphoneIcon fill={Colors.RED} />
|
|
|
- </TouchableOpacity>
|
|
|
+ {chatData?.userType === 'normal' && (
|
|
|
+ <>
|
|
|
+ <TouchableOpacity
|
|
|
+ style={[styles.option, styles.dangerOption]}
|
|
|
+ onPress={handleReport}
|
|
|
+ >
|
|
|
+ <Text style={[styles.optionText, styles.dangerText]}>Report {name}</Text>
|
|
|
+ <MegaphoneIcon fill={Colors.RED} />
|
|
|
+ </TouchableOpacity>
|
|
|
|
|
|
- <TouchableOpacity style={[styles.option, styles.dangerOption]} onPress={handleBlock}>
|
|
|
- <Text style={[styles.optionText, styles.dangerText]}>Block {name}</Text>
|
|
|
- <BanIcon fill={Colors.RED} />
|
|
|
- </TouchableOpacity>
|
|
|
+ <TouchableOpacity
|
|
|
+ style={[styles.option, styles.dangerOption]}
|
|
|
+ onPress={handleBlock}
|
|
|
+ >
|
|
|
+ <Text style={[styles.optionText, styles.dangerText]}>Block {name}</Text>
|
|
|
+ <BanIcon fill={Colors.RED} />
|
|
|
+ </TouchableOpacity>
|
|
|
+ </>
|
|
|
+ )}
|
|
|
|
|
|
<TouchableOpacity style={[styles.option, styles.dangerOption]} onPress={handleDelete}>
|
|
|
<Text style={[styles.optionText, styles.dangerText]}>Delete chat</Text>
|