mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Ensure not to generate omemo crypto twice
This commit is contained in:
parent
d8d7a5348c
commit
79bb5016c2
@ -7887,7 +7887,12 @@ cmd_omemo_gen(ProfWin *window, const char *const command, gchar **args)
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_OMEMO
|
#ifdef HAVE_OMEMO
|
||||||
if (connection_get_status() != JABBER_CONNECTED) {
|
if (connection_get_status() != JABBER_CONNECTED) {
|
||||||
cons_show("You must be connected with an account to initialize OMEMO");
|
cons_show("You must be connected with an account to initialize OMEMO.");
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (omemo_loaded()) {
|
||||||
|
cons_show("OMEMO crytographic materials have already been generated.");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user