Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Labs: Add quick/cheap "do not disturb" flag #5873

Merged
merged 1 commit into from
Apr 15, 2021
Merged

Labs: Add quick/cheap "do not disturb" flag #5873

merged 1 commit into from
Apr 15, 2021

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Apr 15, 2021

This just disables audio notifications and the popup, which is the easiest way to do "do not disturb" for a device. This needs spec changes to be done properly, as it's a shame that mobile devices for the user will still go off.

Disabling all of push doesn't sound ideal as it would potentially mean missing highlights for when leaving DND mode.

Paired with element-hq/element-web#16962


Reviewer: This is without design/product review, hence labs flag. It's largely expected to just fall into the bucket of ancient labs flags for now.


Context for this PR: New personal workflow could do with some quiet time.

image
image

This just disables audio notifications and the popup, which is the easiest way to do "do not disturb" for a device. This needs spec changes to be done properly, as it's a shame that mobile devices for the user will still go off.

Disabling all of push doesn't sound ideal as it would potentially mean missing highlights for when leaving DND mode.
Copy link
Contributor

@germain-gg germain-gg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good to me here 💯 !

@turt2live turt2live merged commit bf70666 into develop Apr 15, 2021
@turt2live turt2live deleted the travis/dnd branch April 15, 2021 14:38
@@ -383,6 +383,10 @@ export const Notifier = {
// don't bother notifying as user was recently active in this room
return;
}
if (SettingsStore.getValue("doNotDisturb")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably also check the feature is enabled to not lock a user into dnd

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the only way to get access to it though is through the feature flag though? If someone goes through devtools and changes it, that's kinda their fault (the devtools don't prevent someone from making mistakes).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean if they end up disabling the lab this option should be implicitly disabled as it'll be very unclear why they are missing their notifications

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose, though overall the labs feature system isn't entirely meant to have safety nets given we don't usually want people to be playing around in there...

Have opened element-hq/element-web#17000 in any case

@t3chguy
Copy link
Member

t3chguy commented Apr 19, 2021

IncompatibleController is one such safetynet but is the inverse of the required behaviour unfortunately

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants