diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-07-27 17:01:58 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-08-24 17:15:21 -0400 |
commit | 36a1e159f3e194ab1ad6db657c8a1fe9a936f5e4 (patch) | |
tree | 82330d5fa36ebfee404eec1adb7d500efb4e31b1 /ui/app/components | |
parent | 3f620e20f0b18246a26aa8e0ec4c3719719700ce (diff) |
[bug] update the UI to the new mail.get_token API
Thanks to @simonft for all the help.
- Resolves: #8980
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/main_panel/imap_button.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/app/components/main_panel/imap_button.js b/ui/app/components/main_panel/imap_button.js index 3d02d3f9..122e463c 100644 --- a/ui/app/components/main_panel/imap_button.js +++ b/ui/app/components/main_panel/imap_button.js @@ -32,10 +32,8 @@ export default class IMAPButton extends React.Component { onClick() { if (!this.state.token) { - bitmask.mail.get_token().then(response => { - if (response.user == this.props.account.address) { - this.setState({token: response.token}) - } + bitmask.mail.get_token(this.props.account.id).then(response => { + this.setState({token: response.token}) }) } this.setState({showModal: true}) |