Sorted. This is now with the original author who can take this forward.
Thanks for sorting that out.
@ganncamp
I’ve fixed the immediate issue. There’s one caveat though. Currently the Discourse backend only supports staff users to be able to switch a post’s post_type
so I have made the toggle icon to to appear if a user is in whispers_allowed_groups
and also a staff member. Do let us know your thoughts on this.
I appreciate the effort. I came up with came up with a solution which reduces the complexity a bit. Also thanks for pointing out the actual cause.
That’s fine for us; only staff can see whispers.
And… I’m not seeing this on my instance yet…?
And now it works! Thanks!
Breaking change on new version of discourse
I recently ran into the same problem as well, so I rewrote the component and made a PR. Pull requests · fzngagan/discourse-toggle-whisper
@fzngagan Can you take a look at it?
Just tested it and it works like a charm. The code looks nice too. Thanks so much for this, it save me a bunch of work. Merged
I made a quick PR to fix the issue (@fzngagan)