# Toggle Whisper 👁

**URL:** https://meta.discourse.org/t/toggle-whisper/181616
**Category:** Theme component
**Tags:** whispers
**Created:** [March 2, 2021, 2:36pm UTC](https://meta.discourse.org/t/toggle-whisper/181616 "2021-03-02T14:36:17Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [March 2, 2021, 2:36pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/1 "2021-03-02T14:36:18Z")

</div>

This theme component adds a post menu button for staff users to make a regular post a whisper or vice versa.

[🔧 How to install](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682)

[💻 Get the code](https://github.com/paviliondev/discourse-toggle-whisper/)

 ![Choose the eye-slash icon in the post controls to make the post a whisper](https://global.discourse-cdn.com/meta/original/4X/7/1/1/7113cb0b57cc28181b238e457f415e384472e373.png)

 ![Choose the eye icon in the post controls to make the post a regular post](https://global.discourse-cdn.com/meta/original/4X/8/8/c/88cd517ef59bf98306c84d05ccabcd6280666bf3.png)

This is useful especially for forums where a lot of conversations happen in whisper and a staff user ends up posting something and later wants to hide or show the post to non-staff users.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [March 2, 2021, 2:43pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/2 "2021-03-02T14:43:41Z")

</div>

Nice! I remember this debate a few years ago. I have been burned by this so many times. The official response is:

> [@Unable to retroactively make a post reply into a whisper](https://meta.discourse.org/t/unable-to-retroactively-make-a-post-reply-into-a-whisper/48259/2):
>
> Er, the cat is out of the bag once you post as a not-whisper. Going back and retconning posts into whispers via editing is not something I can support as a feature.

I am often scrambling to delete whispers before they get emailed out and too many people notice my mistake!

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [March 2, 2021, 2:48pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/3 "2021-03-02T14:48:18Z")

</div>

Brilliant component!

is this possible to just make it so it appears on staff posts?

---

<div class="post-metadata">

### Author: ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)
#### Post date: [March 3, 2021, 4:42am UTC](https://meta.discourse.org/t/toggle-whisper/181616/4 "2021-03-03T04:42:02Z")

</div>

Thank You @fzngagan

Well done!

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [March 3, 2021, 7:04am UTC](https://meta.discourse.org/t/toggle-whisper/181616/5 "2021-03-03T07:04:31Z")

</div>

> [@ondrej](#):
>
> is this possible to just make it so it appears on staff posts?

I’ll take a look at this request soon.

p.s.  
This is addressed now.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [March 3, 2021, 7:44am UTC](https://meta.discourse.org/t/toggle-whisper/181616/6 "2021-03-03T07:44:24Z")

</div>

Yes I think the same, it’s very easy to get wrong with whispers and this is one of the cases where simplicity has too be sacrified for peace of mind.

---

<div class="post-metadata">

### Author: ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)
#### Post date: [March 3, 2021, 7:57am UTC](https://meta.discourse.org/t/toggle-whisper/181616/7 "2021-03-03T07:57:44Z")

</div>

My question then is, does discourse behave differently in terms of email if the post is deleted vs when its post\_type is changed?

---

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [May 10, 2023, 1:09pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/8 "2023-05-10T13:09:53Z")

</div>

We have this component installed, but the toggle no longer shows up.

Has it stopped working, or is it possible that we made some edit elsewhere (to our themes?) that inadvertently blocked it?

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [May 10, 2023, 1:12pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/9 "2023-05-10T13:12:32Z")

</div>

It’s definitely still working on meta.

What does your setting here say:

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/5/9/959fac45aab51560b7e13ac7480bd8ff908c604a.png)

---

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [May 10, 2023, 1:14pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/10 "2023-05-10T13:14:28Z")

</div>

Whispers are allowed

 ![Selection_1065](https://global.discourse-cdn.com/meta/original/4X/3/8/1/3819264b2538f4e16526b8a2e405eeddd0debf62.png)

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [May 10, 2023, 1:17pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/17 "2023-05-10T13:17:30Z")

</div>

Ah I misread the original issue, it’s not about the general whisper functionality, gotcha! @fzngagan is already on the case it seems 😉

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [May 10, 2023, 1:37pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/18 "2023-05-10T13:37:04Z")

</div>

> <https://github.com/fzngagan/discourse-toggle-whisper/blob/master/javascripts/discourse/initializers/toggle-init.js#L15>

Apparently this code is broken. `siteSettings.enable_whispers` has been modified to `siteSettings.whisper_allowed_groups`.

You can try my fork here:  
[https://github.com/Lhcfl/discourse-toggle-whisper](https://github.com/Lhcfl/discourse-toggle-whisper)

---

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [May 10, 2023, 2:20pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/19 "2023-05-10T14:20:15Z")

</div>

Thanks @Lhc_fl! Unfortunately, I don’t think I can try your fork since we’re on a hosted instance. But I appreciate your quick investigation! Maybe that will speed up the official fix. :awthanks:

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 10, 2023, 2:48pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/20 "2023-05-10T14:48:37Z")

</div>

You can have any theme component you like. 👍 🙂 It’s only plugins that need to be #official (or vetted)

However, I think @fzngagan will want to fix this one up, so if you can wait it may be better in this case.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 10, 2023, 2:48pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/21 "2023-05-10T14:48:58Z")

</div>

It’s actually a pavilion repo

@Lhc_fl PR and I will review.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 10, 2023, 2:51pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/22 "2023-05-10T14:51:18Z")

</div>

Do you want to add the #pavilion tag?

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [May 10, 2023, 2:57pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/23 "2023-05-10T14:57:28Z")

</div>

[https://github.com/paviliondev/discourse-toggle-whisper/pull/1](https://github.com/paviliondev/discourse-toggle-whisper/pull/1)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 10, 2023, 2:58pm UTC](https://meta.discourse.org/t/toggle-whisper/181616/24 "2023-05-10T14:58:35Z")

</div>

Yeah let’s do that and I’ll discuss if @fzngagan wants to pass the Topic over.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 31, 2023, 9:19am UTC](https://meta.discourse.org/t/toggle-whisper/181616/26 "2023-05-31T09:19:02Z")

</div>

@merefield Is there any movement on this? I think it may still be in limbo? 🙂

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 31, 2023, 9:20am UTC](https://meta.discourse.org/t/toggle-whisper/181616/27 "2023-05-31T09:20:00Z")

</div>

It’s waiting on a (presumably trivial) org decision. I chased today.

[Next page](https://meta.discourse.org/t/toggle-whisper/181616.md?page=2)
