From c9165ef9d20d1cc96f7edada2a875bc4835b63fb Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 14 Oct 2015 00:23:12 +0100 Subject: Title bar TLS indicator Issue #616 --- src/xmpp/connection.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/xmpp') diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index 5ad5e108..ba694bfd 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -482,11 +482,12 @@ _connection_handler(xmpp_conn_t * const conn, // login success if (status == XMPP_CONN_CONNECT) { log_debug("Connection handler: XMPP_CONN_CONNECT"); + int secured = xmpp_conn_is_secured(jabber_conn.conn); // logged in with account if (saved_account.name) { log_debug("Connection handler: logged in with account name: %s", saved_account.name); - sv_ev_login_account_success(saved_account.name); + sv_ev_login_account_success(saved_account.name, secured); // logged in without account, use details to create new account } else { @@ -494,7 +495,7 @@ _connection_handler(xmpp_conn_t * const conn, accounts_add(saved_details.name, saved_details.altdomain, saved_details.port); accounts_set_jid(saved_details.name, saved_details.jid); - sv_ev_login_account_success(saved_details.name); + sv_ev_login_account_success(saved_details.name, secured); saved_account.name = strdup(saved_details.name); saved_account.passwd = strdup(saved_details.passwd); -- cgit 1.4.1-2-gfad0