summaryrefslogtreecommitdiff
path: root/windows/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'windows/mainwindow.cpp')
-rw-r--r--windows/mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/windows/mainwindow.cpp b/windows/mainwindow.cpp
index 24f39f3..6f0bfaa 100644
--- a/windows/mainwindow.cpp
+++ b/windows/mainwindow.cpp
@@ -115,6 +115,11 @@ void MainWindow::UpdateChatMessageDeleted(Snowflake id, Snowflake channel_id) {
m_chat.DeleteMessage(id);
}
+void MainWindow::UpdateChatMessageEditContent(Snowflake id, Snowflake channel_id) {
+ if (channel_id == GetChatActiveChannel())
+ m_chat.UpdateMessageContent(id);
+}
+
void MainWindow::UpdateChatPrependHistory(const std::vector<MessageData> &msgs) {
m_chat.AddNewHistory(msgs);
}