diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-07-18 15:43:35 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-08-24 17:13:39 -0400 |
commit | 8cebf955ad71975a20275a780a67b31099759e3a (patch) | |
tree | 998562d9398e0aee9b7adb7cfbb28170b816c00a /ui/app | |
parent | 3b4508dff9dc1a681f3c96edcef4e43aa3da29a8 (diff) |
[feat] add a mock mixnet_status call to the API
For now we say it will be mixed on every request if the mixnet is
enabled. We might want a better mock in the future.
- Resolves: #8972
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/lib/bitmask.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js index 72c027c..bef5401 100644 --- a/ui/app/lib/bitmask.js +++ b/ui/app/lib/bitmask.js @@ -320,6 +320,19 @@ var bitmask = function(){ */ get_token: function() { return call(['mail', 'get_token']); + }, + + /** + * Get status on the mixnet for an address. + * + * @param {string} uid The uid to get status about + * @param {string} address The recipient address to be mixed + * + * @return {Promise<{'status': string}>} Where the status string can be 'ok', + * 'unsuported' or 'disabled' + */ + mixnet_status: function(uid, address) { + return call(['mail', 'mixnet_status', uid, address]); } }, |