diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-07-15 21:14:39 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-07-15 21:14:39 -0400 |
commit | 52b52eb489caa64e6cea978f2c6917a55fa70979 (patch) | |
tree | 740be513f52752cf25479bede9e8e2231bf0ffa6 /src/components/chatwindow.cpp | |
parent | add48af094ec9111727862d3f2ee1916474a2471 (diff) | |
download | abaddon-portaudio-52b52eb489caa64e6cea978f2c6917a55fa70979.tar.gz abaddon-portaudio-52b52eb489caa64e6cea978f2c6917a55fa70979.zip |
check if message is editable
Diffstat (limited to 'src/components/chatwindow.cpp')
-rw-r--r-- | src/components/chatwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/chatwindow.cpp b/src/components/chatwindow.cpp index 17f5601..aeed4ed 100644 --- a/src/components/chatwindow.cpp +++ b/src/components/chatwindow.cpp @@ -288,7 +288,7 @@ bool ChatWindow::OnInputSubmit(ChatSubmitParams data) { bool ChatWindow::ProcessKeyEvent(GdkEventKey *e) { if (e->type != GDK_KEY_PRESS) return false; if (e->keyval == GDK_KEY_Up && !(e->state & GDK_SHIFT_MASK) && m_input->IsEmpty()) { - const auto edit_id = m_chat->GetLastSentMessage(); + const auto edit_id = m_chat->GetLastSentEditableMessage(); if (edit_id.has_value()) { StartEditing(*edit_id); } |