move chat message menu into the chatlist

This commit is contained in:
ouwou
2021-06-16 03:53:30 -04:00
parent d527669d39
commit 51fdcddaea
5 changed files with 68 additions and 109 deletions

View File

@@ -544,6 +544,7 @@ void Abaddon::ActionChatDeleteMessage(Snowflake channel_id, Snowflake id) {
void Abaddon::ActionChatEditMessage(Snowflake channel_id, Snowflake id) {
const auto msg = m_discord.GetMessage(id);
if (!msg.has_value()) return;
EditMessageDialog dlg(*m_main_window);
dlg.SetContent(msg->Content);
auto response = dlg.run();