diff options
Diffstat (limited to 'src/components/messages/ChannelPreview.tsx')
-rw-r--r-- | src/components/messages/ChannelPreview.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/messages/ChannelPreview.tsx b/src/components/messages/ChannelPreview.tsx index f2662b6a..4a0cee0b 100644 --- a/src/components/messages/ChannelPreview.tsx +++ b/src/components/messages/ChannelPreview.tsx @@ -55,8 +55,11 @@ const ChannelPreview: React.FC< <RectButton style={styles.muteButton} onPress={() => { - channel.mute(); - console.log(channel.muteStatus()); + if (isMuted) { + channel.unmute(); + } else { + channel.mute(); + } }}> <Image source={mutedImage} style={styles.icon} /> <Text style={styles.actionText}>{isMuted ? 'Unmute' : 'Mute'}</Text> |