add MESSAGE_UPDATE

This commit is contained in:
ouwou
2020-08-30 20:24:02 -04:00
parent 4e7e5a3063
commit 44b7989f50
12 changed files with 124 additions and 8 deletions

View File

@@ -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);
}