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

Support for enabling email notifications #289

Merged
merged 6 commits into from
May 10, 2016
Merged

Support for enabling email notifications #289

merged 6 commits into from
May 10, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Apr 29, 2016

Supports element-hq/element-web#1469 (this PR is safe without the vector-web PR)

element-hq/element-web#108

@@ -328,12 +328,12 @@ module.exports = React.createClass({
);
}
var notification_area;
if (!MatrixClientPeg.get().isGuest()) {
if (!MatrixClientPeg.get().isGuest() && this.state.threepids !== undefined) {
Copy link
Member

Choose a reason for hiding this comment

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

surely we should still show the Notifications settings, even if the user has no threepids?

Copy link
Member Author

Choose a reason for hiding this comment

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

If they have no threepids, this should be the empty list.

@ara4n
Copy link
Member

ara4n commented Apr 30, 2016

Stealing this from vdh as he's on a boat.

@dbkr: LGTM, modulo comments - although I am concerned that we seem to have an asymmetry between getEmailPusher() that just returns the first pusher, whereas addEmailPusher() lets you add multiple ones. What's the intended behaviour here for multiple email pushers? It would be nice to comment the methods to make this clear.

@ara4n ara4n assigned dbkr and unassigned richvdh Apr 30, 2016
@dbkr
Copy link
Member Author

dbkr commented May 3, 2016

getEmailPusher returns the first pusher for that email address - could make it return an array although it would be an extreme edge case to have to pushers for the same account and email address.

@dbkr dbkr assigned ara4n and unassigned dbkr May 3, 2016
@ara4n
Copy link
Member

ara4n commented May 3, 2016

@dbkr 'to have /different/ pushers for the same account and email address'? i'm lost - perhaps some comments on getEmailPusher and addEmailPusher would help?

@ara4n ara4n assigned dbkr and unassigned ara4n May 3, 2016
@dbkr
Copy link
Member Author

dbkr commented May 4, 2016

Done - is this any clearer?

@ara4n
Copy link
Member

ara4n commented May 5, 2016

lgtm

@ara4n ara4n merged commit 62a1100 into develop May 10, 2016
@richvdh richvdh deleted the dbkr/email_notifs branch February 15, 2017 13:16
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