From edaa4988f09c611dd1f0411b42e172a09d6b9bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 22 Sep 2018 08:07:46 +0200 Subject: [PATCH] Dont show encryption status for status messages Fixes #9353 --- gajim/conversation_textview.py | 3 ++- gajim/gtk/history.py | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gajim/conversation_textview.py b/gajim/conversation_textview.py index 55b4c5648..7e1c2717b 100644 --- a/gajim/conversation_textview.py +++ b/gajim/conversation_textview.py @@ -1153,7 +1153,8 @@ class ConversationTextview(GObject.GObject): direction_mark = i18n.direction_mark # print the encryption icon - self.print_encryption_status(iter_, additional_data) + if kind in ('incoming', 'outgoing'): + self.print_encryption_status(iter_, additional_data) # print the time stamp self.print_time(text, kind, tim, simple, direction_mark, diff --git a/gajim/gtk/history.py b/gajim/gtk/history.py index 175265584..82f33b091 100644 --- a/gajim/gtk/history.py +++ b/gajim/gtk/history.py @@ -535,8 +535,10 @@ class HistoryWindow: end_iter, tim + '\n', 'time_sometimes') # print the encryption icon - self.history_textview.print_encryption_status( - end_iter, additional_data) + if kind in (KindConstant.CHAT_MSG_SENT, + KindConstant.CHAT_MSG_RECV): + self.history_textview.print_encryption_status( + end_iter, additional_data) tag_name = '' tag_msg = ''