From 28c44380ba89e51c5aeac01ca9549633fbeb7e11 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 21 Feb 2020 02:11:23 +0100 Subject: Move ConversationContentView+ChatInput into ConversationView, handle drag'n'drop on ConversationView level --- main/src/ui/chat_input_controller.vala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main/src/ui/chat_input_controller.vala') diff --git a/main/src/ui/chat_input_controller.vala b/main/src/ui/chat_input_controller.vala index aafb40a3..59a2abb4 100644 --- a/main/src/ui/chat_input_controller.vala +++ b/main/src/ui/chat_input_controller.vala @@ -23,6 +23,8 @@ public class ChatInputController : Object { this.status_description_label = chat_input.chat_input_status; this.stream_interactor = stream_interactor; + chat_input.init(stream_interactor); + reset_input_field_status(); chat_input.text_input.buffer.changed.connect(on_text_input_changed); @@ -40,6 +42,7 @@ public class ChatInputController : Object { reset_input_field_status(); + chat_input.initialize_for_conversation(conversation); chat_input.occupants_tab_completor.initialize_for_conversation(conversation); chat_input.edit_history.initialize_for_conversation(conversation); chat_input.encryption_widget.set_conversation(conversation); -- cgit v1.2.3-70-g09d2