forked from OpenGamers/abaddon
add MESSAGE_DELETE handling
This commit is contained in:
@@ -110,6 +110,11 @@ void MainWindow::UpdateChatNewMessage(Snowflake id) {
|
||||
m_chat.AddNewMessage(id);
|
||||
}
|
||||
|
||||
void MainWindow::UpdateChatMessageDeleted(Snowflake id, Snowflake channel_id) {
|
||||
if (channel_id == GetChatActiveChannel())
|
||||
m_chat.DeleteMessage(id);
|
||||
}
|
||||
|
||||
void MainWindow::UpdateChatPrependHistory(const std::vector<MessageData> &msgs) {
|
||||
m_chat.AddNewHistory(msgs);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ public:
|
||||
void UpdateChatActiveChannel(Snowflake id);
|
||||
Snowflake GetChatActiveChannel() const;
|
||||
void UpdateChatNewMessage(Snowflake id);
|
||||
void UpdateChatMessageDeleted(Snowflake id, Snowflake channel_id);
|
||||
void UpdateChatPrependHistory(const std::vector<MessageData> &msgs);
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user