Add support for syncing blocked numbers

// FREEBIE
This commit is contained in:
lilia 2016-09-06 17:12:45 -07:00
parent 53f20640af
commit f610233ef6
7 changed files with 56 additions and 2 deletions

View file

@ -0,0 +1,10 @@
/*
* vim: ts=4:sw=4:expandtab
*/
(function () {
'use strict';
window.Whisper = window.Whisper || {};
storage.isBlocked = function(number) {
return storage.get('blocked', []).indexOf(number) >= 0;
};
})();