Support for email notifs

Add utility funcs in UserSettingsStore and pass threepids to Notifications so it can do email notif stuff
This commit is contained in:
David Baker 2016-04-12 16:17:04 +01:00
parent 1d5f234f2c
commit fcab259511
2 changed files with 31 additions and 2 deletions

View file

@ -319,12 +319,12 @@ module.exports = React.createClass({
);
}
var notification_area;
if (!MatrixClientPeg.get().isGuest()) {
if (!MatrixClientPeg.get().isGuest() && this.state.threepids !== undefined) {
notification_area = (<div>
<h2>Notifications</h2>
<div className="mx_UserSettings_section">
<Notifications/>
<Notifications threepids={this.state.threepids} />
</div>
</div>);
}