From 8cebf955ad71975a20275a780a67b31099759e3a Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Tue, 18 Jul 2017 15:43:35 +0200 Subject: [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 --- ui/app/lib/bitmask.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ui/app/lib/bitmask.js') 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]); } }, -- cgit v1.2.3