diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-12-10 14:23:47 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-12-10 14:23:47 +0100 |
commit | 3703879a1cb90f48b08ea4e651ea0ebaf02ed3fd (patch) | |
tree | 66b4a4e37970b54544f0d2d1add2eefc13b25f8a /src/ui | |
parent | a94378f206c96ff4b3687b001b5a42a7db41ce72 (diff) | |
download | profani-tty-3703879a1cb90f48b08ea4e651ea0ebaf02ed3fd.tar.gz |
Remove not needed initialization in chatwin_new()
00dbc1ba7c66c3bb6898aed26922bf5295768bb1 attempted to fix https://github.com/profanity-im/profanity/issues/1449. Here we revert the part about initializing is_omemo in chatwin_new() since this is done in win_create_chat() already. The actual mistake was the wrong cast of the muc window which is fixed by the same commit. The mistake was introduced in in 3370418d71de255c832da97113543e554ec0e86b. While being at it we also remove the is_ox initialization since this is handled in win_create_chat()/win_create_muc() too.
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/chatwin.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c index d1737561..d1f6e356 100644 --- a/src/ui/chatwin.c +++ b/src/ui/chatwin.c @@ -80,7 +80,6 @@ chatwin_new(const char* const barejid) } } - chatwin->is_omemo = FALSE; #ifdef HAVE_OMEMO if (omemo_automatic_start(barejid)) { omemo_start_session(barejid); @@ -92,9 +91,6 @@ chatwin_new(const char* const barejid) iq_mam_request(chatwin); } - // XEP-0373: OpenPGP for XMPP - chatwin->is_ox = FALSE; - return chatwin; } |