Add bookmark ignore functionality for multiple accounts
``` cat ~/.local/share/profanity/bookmark_ignore [jubalh@iodoru.org] profanity@rooms.dismail.de=true [testuser@domain.org] testr@rooms.domain.org=true ``` Regards https://github.com/profanity-im/profanity/issues/1115
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include "xmpp/muc.h"
|
||||
#include "xmpp/xmpp.h"
|
||||
#include "database.h"
|
||||
#include "tools/bookmark_ignore.h"
|
||||
|
||||
#ifdef HAVE_LIBGPGME
|
||||
#include "pgp/gpg.h"
|
||||
@@ -69,6 +70,7 @@ ev_disconnect_cleanup(void)
|
||||
omemo_on_disconnect();
|
||||
#endif
|
||||
log_database_close();
|
||||
bookmark_ignore_on_disconnect();
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
||||
@@ -79,6 +79,8 @@ sv_ev_login_account_success(char *account_name, gboolean secured)
|
||||
{
|
||||
ProfAccount *account = accounts_get_account(account_name);
|
||||
|
||||
bookmark_ignore_on_connect(account->jid);
|
||||
|
||||
roster_create();
|
||||
|
||||
#ifdef HAVE_LIBOTR
|
||||
|
||||
Reference in New Issue
Block a user