diff options
| author | MarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com> | 2021-08-22 18:04:51 +0300 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-10-05 14:32:10 +0200 |
| commit | f89a108af45626c885d4f80c5adf62b44e82d7b6 (patch) | |
| tree | 54a4e2cedeecdba468811e29e6b4f1bb06f2b64d /main/src/ui/conversation_content_view/message_widget.vala | |
| parent | 55668fa93befeeab8b1bef2bc7e358eee12c6398 (diff) | |
| download | dino-f89a108af45626c885d4f80c5adf62b44e82d7b6.tar.gz | |
Fix edit button not showing
Diffstat (limited to 'main/src/ui/conversation_content_view/message_widget.vala')
| -rw-r--r-- | main/src/ui/conversation_content_view/message_widget.vala | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/main/src/ui/conversation_content_view/message_widget.vala b/main/src/ui/conversation_content_view/message_widget.vala index 900c9a63..b17f04fe 100644 --- a/main/src/ui/conversation_content_view/message_widget.vala +++ b/main/src/ui/conversation_content_view/message_widget.vala @@ -47,14 +47,6 @@ public class MessageMetaItem : ContentMetaItem { bool allowed = stream_interactor.get_module(MessageCorrection.IDENTITY).is_own_correction_allowed(message_item.conversation, message_item.message); Gee.List<Plugins.MessageAction> actions = new ArrayList<Plugins.MessageAction>(); - if (allowed && !in_edit_mode) { - Plugins.MessageAction action1 = new Plugins.MessageAction(); - action1.icon_name = "document-edit-symbolic"; - action1.callback = (button, content_meta_item_activated, widget) => { - this.in_edit_mode = true; - }; - actions.add(action1); - } Plugins.MessageAction action2 = new Plugins.MessageAction(); action2.icon_name = "go-previous-symbolic-rtl"; @@ -64,6 +56,15 @@ public class MessageMetaItem : ContentMetaItem { }; actions.add(action2); + if (allowed && !in_edit_mode) { + Plugins.MessageAction action1 = new Plugins.MessageAction(); + action1.icon_name = "document-edit-symbolic"; + action1.callback = (button, content_meta_item_activated, widget) => { + this.in_edit_mode = true; + }; + actions.add(action1); + } + return actions; } |
