Cast chat/muc window to correct type and refactor cmd_sendfile

Fixes #1449
This commit is contained in:
William Wennerström
2020-12-09 19:02:37 +01:00
parent b525befe67
commit 00dbc1ba7c
2 changed files with 35 additions and 24 deletions

View File

@@ -80,6 +80,7 @@ chatwin_new(const char* const barejid)
}
}
chatwin->is_omemo = FALSE;
#ifdef HAVE_OMEMO
if (omemo_automatic_start(barejid)) {
omemo_start_session(barejid);
@@ -90,6 +91,7 @@ chatwin_new(const char* const barejid)
if (prefs_get_boolean(PREF_MAM)) {
iq_mam_request(chatwin);
}
// XEP-0373: OpenPGP for XMPP
chatwin->is_ox = FALSE;