From 54b62b9964b9cb359e9414fe6ebd6c422d1eb679 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Mon, 24 Sep 2018 18:06:50 +0200 Subject: [PATCH] Fix request(Un)Mute/Deaf expecting observable instead of its content --- app/index.html | 8 ++++---- app/index.js | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/index.html b/app/index.html index 0d85f8c..f0fcca8 100644 --- a/app/index.html +++ b/app/index.html @@ -198,16 +198,16 @@ rel="information" src="/svg/information_icon.svg">
diff --git a/app/index.js b/app/index.js index b893928..e7cce7d 100644 --- a/app/index.js +++ b/app/index.js @@ -558,11 +558,11 @@ class GlobalBindings { } this.requestMute = user => { - if (user === this.thisUser) { + if (user === this.thisUser()) { this.selfMute(true) } if (this.connected()) { - if (user === this.thisUser) { + if (user === this.thisUser()) { this.client.setSelfMute(true) } else { user.model.setMute(true) @@ -571,12 +571,12 @@ class GlobalBindings { } this.requestDeaf = user => { - if (user === this.thisUser) { + if (user === this.thisUser()) { this.selfMute(true) this.selfDeaf(true) } if (this.connected()) { - if (user === this.thisUser) { + if (user === this.thisUser()) { this.client.setSelfDeaf(true) } else { user.model.setDeaf(true) @@ -585,12 +585,12 @@ class GlobalBindings { } this.requestUnmute = user => { - if (user === this.thisUser) { + if (user === this.thisUser()) { this.selfMute(false) this.selfDeaf(false) } if (this.connected()) { - if (user === this.thisUser) { + if (user === this.thisUser()) { this.client.setSelfMute(false) } else { user.model.setMute(false) @@ -599,11 +599,11 @@ class GlobalBindings { } this.requestUndeaf = user => { - if (user === this.thisUser) { + if (user === this.thisUser()) { this.selfDeaf(false) } if (this.connected()) { - if (user === this.thisUser) { + if (user === this.thisUser()) { this.client.setSelfDeaf(false) } else { user.model.setDeaf(false)