From 6d947c42b5e573cb350a1354a47a3a806a22cbb2 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sat, 15 Sep 2018 16:11:05 +0200 Subject: Notification on TLS error/wrong password, log TLS cert issues, don't make account with connection error appear disabled in accounts dialog --- libdino/src/service/notification_events.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libdino') 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) { -- cgit v1.2.3-54-g00ecf