From a657316278477c8a6055ac9ad75fbdb96bcb1e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 1 Oct 2018 17:12:58 +0200 Subject: [PATCH] bar_items: Add a connection state status item. --- matrix/bar_items.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/matrix/bar_items.py b/matrix/bar_items.py index 3087a6f..f34cfdf 100644 --- a/matrix/bar_items.py +++ b/matrix/bar_items.py @@ -106,6 +106,9 @@ def matrix_bar_item_buffer_modes(data, item, window, buffer, extra_info): and server.client.room_contains_unverified(room.room_id)): modes.append("⚠️ ") + if not server.connected: + modes.append("❌") + if room_buffer.backlog_pending: modes.append("⏳")