From 0cbc04aec878accdcc9d621d85b0d610f81b5909 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 10 Sep 2020 19:31:16 +0200 Subject: Fix warning when clicking to correct a message --- .../src/ui/conversation_content_view/conversation_item_skeleton.vala | 5 ----- main/src/ui/conversation_content_view/message_widget.vala | 1 - 2 files changed, 6 deletions(-) (limited to 'main/src/ui') diff --git a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala index d126f72e..80aa4fd6 100644 --- a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala +++ b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala @@ -64,11 +64,6 @@ public class ConversationItemSkeleton : EventBox { update_margin(); } - public void set_edit_mode() { - if (content_meta_item == null) return; - - } - private void update_margin() { if (item.requires_header && show_skeleton && metadata_header == null) { metadata_header = new ItemMetaDataHeader(stream_interactor, conversation, item) { visible=true }; diff --git a/main/src/ui/conversation_content_view/message_widget.vala b/main/src/ui/conversation_content_view/message_widget.vala index 83d826e9..8e164857 100644 --- a/main/src/ui/conversation_content_view/message_widget.vala +++ b/main/src/ui/conversation_content_view/message_widget.vala @@ -50,7 +50,6 @@ public class MessageMetaItem : ContentMetaItem { Plugins.MessageAction action1 = new Plugins.MessageAction(); action1.icon_name = "document-edit-symbolic"; action1.callback = (button, content_meta_item_activated, widget) => { - message_item_widget.set_edit_mode(); this.in_edit_mode = true; }; actions.add(action1); -- cgit v1.2.3-70-g09d2