aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-22 19:01:16 -0400
committerIvan Chen <ivan@tagg.id>2021-04-22 19:01:16 -0400
commit80237632843c123253b572f571bb6c336a4fad4e (patch)
treee9e884e06156b33ab0689e974a1d1ca06a631972 /src
parent70ff7ff583e03606bd3196082ea5faa05244e681 (diff)
fixed mute toggle
Diffstat (limited to 'src')
-rw-r--r--src/components/messages/ChannelPreview.tsx7
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>