put original message in edit dialog

This commit is contained in:
ouwou committed 2020-11-10 23:53:00 -05:00
1 parent eb0feef511
commit ded2007b53
3 files changed
+10 -3

No files matched your search

+2
View File
@@ -395,7 +395,9 @@ void Abaddon::ActionChatDeleteMessage(Snowflake channel_id, Snowflake id) {
}
void Abaddon::ActionChatEditMessage(Snowflake channel_id, Snowflake id) {
const auto *msg = m_discord.GetMessage(id);
EditMessageDialog dlg(*m_main_window);
dlg.SetContent(msg->Content);
auto response = dlg.run();
if (response == Gtk::RESPONSE_OK) {
auto new_content = dlg.GetContent();