From 949eb31226fba26cbc459f112eca8a53212f5fe6 Mon Sep 17 00:00:00 2001
From: Nico Alt <nicoalt@posteo.org>
Date: Sun, 7 Mar 2021 12:00:00 +0000
Subject: [PATCH] Don't unselect contact rows on opening

Fixes #93
---
 briar-gtk/briar_gtk/private_chat/private_chat_presenter.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/briar-gtk/briar_gtk/private_chat/private_chat_presenter.py b/briar-gtk/briar_gtk/private_chat/private_chat_presenter.py
index b9e39fe..a55e06c 100644
--- a/briar-gtk/briar_gtk/private_chat/private_chat_presenter.py
+++ b/briar-gtk/briar_gtk/private_chat/private_chat_presenter.py
@@ -97,7 +97,6 @@ class PrivateChatPresenter:
         self._show_chat_placeholder(main_content_stack)
         self._show_sidebar_box()
         self._clear_history_container()
-        self._unselect_contact()
         self._set_contact_name_label("")
         self._view.contact_id = 0
         self._hide_chat_menu_button()
@@ -228,10 +227,6 @@ class PrivateChatPresenter:
             "chat_placeholder")
         chat_placeholder.show()
 
-    def _unselect_contact(self):
-        contacts_list_box = self._view.builder.get_object("contacts_list_box")
-        contacts_list_box.unselect_all()
-
     def _hide_chat_menu_button(self):
         chat_menu_button = self._view.builder.get_object("chat_menu_button")
         chat_menu_button.hide()
-- 
GitLab