From b35abad05455970da36aafafd4afc9148aa43ced Mon Sep 17 00:00:00 2001 From: bobufa Date: Sat, 4 Aug 2018 12:48:00 +0200 Subject: fix wrong conversation being prefilled --- main/src/ui/unified_window.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main/src/ui') diff --git a/main/src/ui/unified_window.vala b/main/src/ui/unified_window.vala index 115e392c..22b8f49a 100644 --- a/main/src/ui/unified_window.vala +++ b/main/src/ui/unified_window.vala @@ -91,13 +91,13 @@ public class UnifiedWindow : Gtk.Window { private void reset_search_entry() { if (conversation_frame.conversation != null) { - switch (conversation_frame.conversation.type_) { + switch (conversation.type_) { case Conversation.Type.CHAT: case Conversation.Type.GROUPCHAT_PM: - search_box.search_entry.text = @"with:$(conversation_frame.conversation.counterpart) "; + search_box.search_entry.text = @"with:$(conversation.counterpart) "; break; case Conversation.Type.GROUPCHAT: - search_box.search_entry.text = @"in:$(conversation_frame.conversation.counterpart) "; + search_box.search_entry.text = @"in:$(conversation.counterpart) "; break; } } -- cgit v1.2.3-70-g09d2