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);
|
||||
}
|
||||
|
||||
@@ -40,5 +40,7 @@ void bookmark_ignore_on_connect();
|
||||
void bookmark_ignore_on_disconnect();
|
||||
gboolean bookmark_ignored(Bookmark *bookmark);
|
||||
gchar ** bookmark_ignore_list(gsize *len);
|
||||
void bookmark_ignore_add(const char *const barejid);
|
||||
void bookmark_ignore_remove(const char *const barejid);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user