From 2fba24ccae13e832bd38ff9c7fea71c1a802603d Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 7 Sep 2023 21:30:47 +0200 Subject: Fix subscription notification clearing --- main/src/ui/conversation_content_view/conversation_view.vala | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main/src/ui/conversation_content_view') diff --git a/main/src/ui/conversation_content_view/conversation_view.vala b/main/src/ui/conversation_content_view/conversation_view.vala index cc63037f..4006a02f 100644 --- a/main/src/ui/conversation_content_view/conversation_view.vala +++ b/main/src/ui/conversation_content_view/conversation_view.vala @@ -606,6 +606,12 @@ public class ConversationView : Widget, Plugins.ConversationItemCollection, Plug widget.dispose(); } widgets.clear(); + + Widget? notification = notifications.get_first_child(); + while (notification != null) { + notifications.remove(notification); + notification = notifications.get_first_child(); + } } private void clear_notifications() { -- cgit v1.2.3-70-g09d2