Merge pull request #14884 from JoVictorNunes/issue-14754
fix: check whether there's a toast before dismissing
This commit is contained in:
commit
868355cf40
@ -62,7 +62,9 @@ class StatusNotifier extends Component {
|
|||||||
|
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 'raiseHand':
|
case 'raiseHand':
|
||||||
if (emojiUsers.length === 0) return toast.dismiss(this.statusNotifierId);
|
if (emojiUsers.length === 0) {
|
||||||
|
return this.statusNotifierId ? toast.dismiss(this.statusNotifierId) : null;
|
||||||
|
}
|
||||||
|
|
||||||
if (raiseHandAudioAlert && emojiUsers.length > prevProps.emojiUsers.length) {
|
if (raiseHandAudioAlert && emojiUsers.length > prevProps.emojiUsers.length) {
|
||||||
this.audio.play();
|
this.audio.play();
|
||||||
|
Loading…
Reference in New Issue
Block a user