summaryrefslogtreecommitdiff
path: root/ui/app/lib/bitmask.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/lib/bitmask.js')
-rw-r--r--ui/app/lib/bitmask.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js
index 72c027cb..bef54013 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]);
}
},