aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-12-17 01:30:33 +0100
committerdec05eba <dec05eba@protonmail.com>2023-12-17 01:30:33 +0100
commit8b5ebcf85b0dd7c4addc02028ae53b1f4fee9391 (patch)
tree662995c76a2d222945fd53eb16381b032e4ce8a0 /src
parent785a3f0a062247910f1ae988c141a7c613a90d51 (diff)
Matrix: reset edit text if edit text empty
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index c348e1c..f7dab9f 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -7329,7 +7329,7 @@ namespace QuickMedia {
chat_state = ChatState::EDITING;
currently_operating_on_item = selected;
chat_input.set_editable(true);
- if(room_extra_data.editing_message_id.empty() || message->event_id != room_extra_data.editing_message_id) {
+ if(chat_input.get_text().empty() || room_extra_data.editing_message_id.empty() || message->event_id != room_extra_data.editing_message_id) {
chat_input.set_text(std::move(body_text_unformatted)); // TODO: Description? it may change in the future, in which case this should be edited
}
chat_input.move_caret_to_end();