diff options
Diffstat (limited to 'ui/app/lib')
-rw-r--r-- | ui/app/lib/bitmask.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js index a6cf8e56..21dbb652 100644 --- a/ui/app/lib/bitmask.js +++ b/ui/app/lib/bitmask.js @@ -223,10 +223,15 @@ var bitmask = function(){ /** * Check the status of the email service * + * @param {string} uid The uid to get status about + * * @return {Promise<string>} User readable status */ - status: function() { - return call(['mail', 'status']); + status: function(uid) { + if (typeof uid !== 'string') { + uid = null + } + return call(['mail', 'status', uid]); }, /** |