mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Check whether we are already in an omemo session for MUCs as well
We do this for regular chatwins already.
This commit is contained in:
parent
57c8969de0
commit
1dd65bca6b
@ -8682,6 +8682,11 @@ cmd_omemo_start(ProfWin* window, const char* const command, gchar** args)
|
||||
ProfMucWin* mucwin = (ProfMucWin*)window;
|
||||
assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK);
|
||||
|
||||
if (mucwin->is_omemo) {
|
||||
win_println((ProfWin*)mucwin, THEME_DEFAULT, "!", "You are already in an OMEMO session.");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (muc_anonymity_type(mucwin->roomjid) == MUC_ANONYMITY_TYPE_NONANONYMOUS
|
||||
&& muc_member_type(mucwin->roomjid) == MUC_MEMBER_TYPE_MEMBERS_ONLY) {
|
||||
accounts_add_omemo_state(session_get_account_name(), mucwin->roomjid, TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user