1
0
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Display OMEMO device ID

Display the OMEMO device ID which has been generated, when the user generated
OMEMO crytographic materials via /omemo gen.
This commit is contained in:
DebXWoody 2021-05-28 17:57:42 +02:00
parent efe4470372
commit 9974c68ee8
No known key found for this signature in database
GPG Key ID: CBD1B596579B7FFF
2 changed files with 6 additions and 1 deletions

View File

@ -8415,7 +8415,7 @@ cmd_omemo_gen(ProfWin* window, const char* const command, gchar** args)
ui_update();
ProfAccount* account = accounts_get_account(session_get_account_name());
omemo_generate_crypto_materials(account);
cons_show("OMEMO crytographic materials generated.");
cons_show("OMEMO crytographic materials generated. Your Device ID is %d.", omemo_device_id());
return TRUE;
#else
cons_show("This version of Profanity has not been built with OMEMO support enabled");

View File

@ -114,3 +114,8 @@ omemo_encrypt_file(FILE* in, FILE* out, off_t file_size, int* gcry_res)
return NULL;
};
void omemo_free(void* a){};
uint32_t
omemo_device_id() {
return 123;
}