mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Dont initialize omemo autocompleter twice
We already do this in omemo_init() no need to do it again in omemo_on_connect().
This commit is contained in:
parent
199162b11a
commit
d0047c8376
@ -226,8 +226,6 @@ omemo_on_connect(ProfAccount *account)
|
|||||||
omemo_ctx.device_list_handler = g_hash_table_new_full(g_str_hash, g_str_equal, free, NULL);
|
omemo_ctx.device_list_handler = g_hash_table_new_full(g_str_hash, g_str_equal, free, NULL);
|
||||||
omemo_ctx.known_devices = g_hash_table_new_full(g_str_hash, g_str_equal, free, (GDestroyNotify)_g_hash_table_free);
|
omemo_ctx.known_devices = g_hash_table_new_full(g_str_hash, g_str_equal, free, (GDestroyNotify)_g_hash_table_free);
|
||||||
|
|
||||||
omemo_ctx.fingerprint_ac = autocomplete_new();
|
|
||||||
|
|
||||||
char *omemodir = files_get_data_path(DIR_OMEMO);
|
char *omemodir = files_get_data_path(DIR_OMEMO);
|
||||||
GString *basedir = g_string_new(omemodir);
|
GString *basedir = g_string_new(omemodir);
|
||||||
free(omemodir);
|
free(omemodir);
|
||||||
|
Loading…
Reference in New Issue
Block a user