aboutsummaryrefslogtreecommitdiff
path: root/libdino
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2018-09-15 16:11:05 +0200
committerfiaxh <git@mx.ax.lt>2018-09-15 16:19:47 +0200
commit6d947c42b5e573cb350a1354a47a3a806a22cbb2 (patch)
tree610471569b55880d563ca86db5041f11ec0022ce /libdino
parentbf2c78d1b720fff381b2a5a86bb154cffc0d7814 (diff)
downloaddino-6d947c42b5e573cb350a1354a47a3a806a22cbb2.tar.gz
dino-6d947c42b5e573cb350a1354a47a3a806a22cbb2.zip
Notification on TLS error/wrong password, log TLS cert issues, don't make account with connection error appear disabled in accounts dialog
Diffstat (limited to 'libdino')
-rw-r--r--libdino/src/service/notification_events.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdino/src/service/notification_events.vala b/libdino/src/service/notification_events.vala
index 13fef3e3..2d6a2545 100644
--- a/libdino/src/service/notification_events.vala
+++ b/libdino/src/service/notification_events.vala
@@ -11,6 +11,7 @@ public class NotificationEvents : StreamInteractionModule, Object {
public signal void notify_message(Message message, Conversation conversation);
public signal void notify_subscription_request(Conversation conversation);
+ public signal void notify_connection_error(Account account, ConnectionManager.ConnectionError error);
private StreamInteractor stream_interactor;
@@ -39,6 +40,7 @@ public class NotificationEvents : StreamInteractionModule, Object {
}
mam_potential_new[account].clear();
});
+ stream_interactor.connection_manager.connection_error.connect((account, error) => notify_connection_error(account, error));
}
private void on_message_received(Entities.Message message, Conversation conversation) {