mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Fixed compilation without libotr
This commit is contained in:
parent
4f35b11471
commit
a713654f93
@ -545,11 +545,13 @@ sv_ev_contact_offline(char *barejid, char *resource, char *status)
|
|||||||
ui_contact_offline(barejid, resource, status);
|
ui_contact_offline(barejid, resource, status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBOTR
|
||||||
ProfChatWin *chatwin = wins_get_chat(barejid);
|
ProfChatWin *chatwin = wins_get_chat(barejid);
|
||||||
if (chatwin && otr_is_secure(barejid)) {
|
if (chatwin && otr_is_secure(barejid)) {
|
||||||
chatwin_otr_unsecured(chatwin);
|
chatwin_otr_unsecured(chatwin);
|
||||||
otr_end_session(chatwin->barejid);
|
otr_end_session(chatwin->barejid);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
rosterwin_roster();
|
rosterwin_roster();
|
||||||
chat_session_remove(barejid);
|
chat_session_remove(barejid);
|
||||||
|
Loading…
Reference in New Issue
Block a user