summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-08-30 20:24:02 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-08-30 20:24:02 -0400
commit44b7989f50d458a8d60024f29e225e40a106d927 (patch)
tree24bafb2f31d12b36ce488cee351f335015e5bd20 /windows
parent4e7e5a30632b76ccc53255532ba9a6549084e498 (diff)
downloadabaddon-portaudio-44b7989f50d458a8d60024f29e225e40a106d927.tar.gz
abaddon-portaudio-44b7989f50d458a8d60024f29e225e40a106d927.zip
add MESSAGE_UPDATE
Diffstat (limited to 'windows')
-rw-r--r--windows/mainwindow.cpp5
-rw-r--r--windows/mainwindow.hpp1
2 files changed, 6 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);
}
diff --git a/windows/mainwindow.hpp b/windows/mainwindow.hpp
index 10d897c..43dd540 100644
--- a/windows/mainwindow.hpp
+++ b/windows/mainwindow.hpp
@@ -17,6 +17,7 @@ public:
Snowflake GetChatActiveChannel() const;
void UpdateChatNewMessage(Snowflake id);
void UpdateChatMessageDeleted(Snowflake id, Snowflake channel_id);
+ void UpdateChatMessageEditContent(Snowflake id, Snowflake channel_id);
void UpdateChatPrependHistory(const std::vector<MessageData> &msgs);
protected: