Cast chat/muc window to correct type and refactor cmd_sendfile
Fixes #1449
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user