summary refs log tree commit diff
path: root/src/timeline/TimelineModel.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-02-01 02:22:53 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-02-09 20:22:53 +0100
commit9b7d33e847b02031fdc153716614f125992b3734 (patch)
treef75327037c6898accb8004fd610c57fd35048df4 /src/timeline/TimelineModel.h
parentDisplay edits correctly (diff)
downloadnheko-9b7d33e847b02031fdc153716614f125992b3734.tar.xz
Implement message editing
The UI still looks ugly, but I have no good idea atm.

fixes #134
Diffstat (limited to '')
-rw-r--r--src/timeline/TimelineModel.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/timeline/TimelineModel.h b/src/timeline/TimelineModel.h
index 463d8705..0aec27a1 100644
--- a/src/timeline/TimelineModel.h
+++ b/src/timeline/TimelineModel.h
@@ -274,14 +274,7 @@ public slots:
         }
         QString edit() const { return edit_; }
         void setEdit(QString newEdit);
-        void resetEdit()
-        {
-                if (!edit_.isEmpty()) {
-                        edit_ = "";
-                        emit editChanged(edit_);
-                        resetReply();
-                }
-        }
+        void resetEdit();
         void setDecryptDescription(bool decrypt) { decryptDescription = decrypt; }
         void clearTimeline() { events.clearTimeline(); }
         void receivedSessionKey(const std::string &session_key)