If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide, specifically for machine setup and for developer workflow.
Notes: Jira ticket
See corresponding ticket for mobile: https://mattermost.atlassian.net/browse/RN-417
Functionality
When a channel is muted, desktop, push and email notifications are not sent for the channel.
When a channel is unmuted, push, email and desktop notifications are sent as usual (According to the Account settings preferences, unless overridden by the channel notification settings "Send Desktop Notifications" and "Send mobile push notifications")
User Interface
When a channel is unmuted, opacity of the channel name is increased to normal in the left-hand-side and the channel is resorted among the non-muted channels as usual.
"Mute Channel"
[ ] On
[ x ] Off
Help Text: Muting turns off desktop, email and push notifications for this channel. The channel will not be marked as unread unless you're mentioned.
When a channel is muted (via slash command or this setting), all other channel notification preferences are hidden in the UI, including "Send desktop notifications", "Send mobile push notifications", and "Mark Channel Unread".
When a channel is unmuted (via slash command, this setting, or the channel header icon), all other channel notification preferences are shown as usual below this setting. "Send Desktop Notifications", "Send mobile push notifications" and "Mark Channel Unread" settings return to the state they were in before muting.
Remove the setting Channel Notification Preferences > Mark Channel Unread. Turn on Mute Channel for any channel which had been set to "Only for mentions".
Slash Command
Add a slash command "/mute". Autocomplete description:
/mute [channel]
Turns off desktop, email and push notifications for the current channel or the [channel] specified
"/mute" mutes the current channel
"/mute" when the current channel is already muted will unmute the current channel
"/mute ~channel-handle" mutes the channel listed.
"/mute ~channel-handle" when the listed channel is already muted will unmute the listed channel.
Hey guys,
I think this could be my first contribution for this project. Tomorrow I'll be on a hackathon and will try to implement this very nice feature. :)
Sweet, thanks @chclaus!
Hey @chclaus, just checking in, any questions on this one?
Hej @esethna it鈥榮 in progress. I鈥榲e used the developers chan for info gathering ;)
But I think you have to wait a few more days until the feature is done.
Hi @esethna here is a short status report: I've finished the slash command. I think I'll challenge the unit test tomorrow.
The UI extensions could take... hm... let's say a week. If you're fine with it, I will try to solve it. Otherwise I could send the PR after I've finished the unit test so that another guy can finish the rest.
@chclaus, awesome! That timeline is totally fine, but just so you're aware, cut-off for submitting new features for the November release is October 26, so if you'd like this in the next release the PRs have to be submitted by that date. Really looking forward to this feature!
Ah. Important Info. Thanks 馃槂
Most helpful comment
Hey guys,
I think this could be my first contribution for this project. Tomorrow I'll be on a hackathon and will try to implement this very nice feature. :)