mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-19 20:11:59 +03:00
pass around snowflake instead of MessageData
This commit is contained in:
@@ -131,7 +131,7 @@ void MainWindow::UpdateChatMessageEditContent(Snowflake id, Snowflake channel_id
|
||||
m_chat.UpdateMessageContent(id);
|
||||
}
|
||||
|
||||
void MainWindow::UpdateChatPrependHistory(const std::vector<MessageData> &msgs) {
|
||||
void MainWindow::UpdateChatPrependHistory(const std::vector<Snowflake> &msgs) {
|
||||
m_chat.AddNewHistory(msgs);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ public:
|
||||
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);
|
||||
void UpdateChatPrependHistory(const std::vector<Snowflake> &msgs);
|
||||
|
||||
protected:
|
||||
Gtk::Box m_main_box;
|
||||
|
||||
Reference in New Issue
Block a user