mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 18:36:30 +03:00
add decision- and blocking-functions to repl, cleanup (#2258)
* deprecate mostly unused dc_get_blocked_cnt() api instead, the size returned by get_blocked_contacts() should be checked, this is safer and allows easier adaption of blocking rules. ui or python seems not to use dc_get_blocked_cnt(), however, there is one test in node, therefore, the function will continue working for now (by just returning Contact::get_all_blocked().len() then) * add decision api to repl tool * add block/unblock api to repl tool * unify usage of @deprecated doxygen command
This commit is contained in:
@@ -168,12 +168,14 @@ const DB_COMMANDS: [&str; 9] = [
|
||||
"housekeeping",
|
||||
];
|
||||
|
||||
const CHAT_COMMANDS: [&str; 28] = [
|
||||
const CHAT_COMMANDS: [&str; 30] = [
|
||||
"listchats",
|
||||
"listarchived",
|
||||
"chat",
|
||||
"createchat",
|
||||
"createchatbymsg",
|
||||
"decidestartchat",
|
||||
"decideblock",
|
||||
"decidenotnow",
|
||||
"creategroup",
|
||||
"createverified",
|
||||
"addmember",
|
||||
@@ -206,13 +208,16 @@ const MESSAGE_COMMANDS: [&str; 6] = [
|
||||
"markseen",
|
||||
"delmsg",
|
||||
];
|
||||
const CONTACT_COMMANDS: [&str; 6] = [
|
||||
const CONTACT_COMMANDS: [&str; 9] = [
|
||||
"listcontacts",
|
||||
"listverified",
|
||||
"addcontact",
|
||||
"contactinfo",
|
||||
"delcontact",
|
||||
"cleanupcontacts",
|
||||
"block",
|
||||
"unblock",
|
||||
"listblocked",
|
||||
];
|
||||
const MISC_COMMANDS: [&str; 10] = [
|
||||
"getqr",
|
||||
|
||||
Reference in New Issue
Block a user