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

Failed to enable HTML5 Notifications Error Dialogs #827

Merged
merged 4 commits into from
Apr 30, 2017
Merged

Failed to enable HTML5 Notifications Error Dialogs #827

merged 4 commits into from
Apr 30, 2017

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Apr 23, 2017

Would appreciate better wording for both scenarios

for element-hq/element-web#2569

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
…changing

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@t3chguy t3chguy closed this Apr 23, 2017
@t3chguy t3chguy reopened this Apr 23, 2017
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

src/Notifier.js Outdated
@@ -131,6 +133,14 @@ const Notifier = {
plaf.requestNotificationPermission().done((result) => {
if (result !== 'granted') {
// The permission request was dismissed or denied
const description = result === 'denied'
? 'Your browser is not permitting this app to send you notifications.'
: 'It seems you didn\'t accept notifications when your browser asked';
Copy link
Member

Choose a reason for hiding this comment

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

I suggest:

"Riot does not have permission to send you notifications - please check your browser settings"

Copy link
Member Author

Choose a reason for hiding this comment

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

do you suggest that for both the denied and default (they simply dismissed it) scenarios?

Copy link
Member

Choose a reason for hiding this comment

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

oops, sorry, i missed this (and misread the ternary as a continuation the first time). How about this?

denied: "Riot does not have permission to send you notifications - please check your browser settings"
default: "Riot was not given permission to send notifications - please try again"

@ara4n
Copy link
Member

ara4n commented Apr 24, 2017

i added a comment for better wording - otherwise lgtm :)

@ara4n
Copy link
Member

ara4n commented Apr 27, 2017

@t3chguy ptal

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy
Copy link
Member Author

t3chguy commented Apr 29, 2017

@ara4n PTAL

@ara4n
Copy link
Member

ara4n commented Apr 30, 2017

thanks

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