add new functions
This commit is contained in:
parent
cee30dc642
commit
5e9de56c7e
1 changed files with 5 additions and 1 deletions
|
@ -23,6 +23,10 @@ const isOnSpamWatch = (userId: string) => {
|
|||
return blocklist.includes(userId);
|
||||
};
|
||||
|
||||
const isSpamwatchConnected = () => blocklist.length > 0;
|
||||
|
||||
const getSpamwatchBlockedCount = () => blocklist.length;
|
||||
|
||||
readBlocklist();
|
||||
|
||||
export { isOnSpamWatch };
|
||||
export { isOnSpamWatch, isSpamwatchConnected, getSpamwatchBlockedCount };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue