mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 16:26:21 +00:00
Add bookmark ignore add|remove
Regards https://github.com/profanity-im/profanity/issues/1115
This commit is contained in:
@@ -91,3 +91,15 @@ bookmark_ignore_list(gsize *len)
|
||||
{
|
||||
return g_key_file_get_keys(bookmark_ignore_keyfile, account_jid, len, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
bookmark_ignore_add(const char *const barejid)
|
||||
{
|
||||
g_key_file_set_boolean(bookmark_ignore_keyfile, account_jid, barejid, TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
bookmark_ignore_remove(const char *const barejid)
|
||||
{
|
||||
g_key_file_remove_key(bookmark_ignore_keyfile, account_jid, barejid, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user