forked from OpenGamers/abaddon
scroll up to load more messages
This commit is contained in:
@@ -110,6 +110,10 @@ void MainWindow::UpdateChatNewMessage(Snowflake id) {
|
||||
m_chat.AddNewMessage(id);
|
||||
}
|
||||
|
||||
void MainWindow::UpdateChatPrependHistory(const std::vector<MessageData> &msgs) {
|
||||
m_chat.AddNewHistory(msgs);
|
||||
}
|
||||
|
||||
void MainWindow::SetAbaddon(Abaddon *ptr) {
|
||||
m_abaddon = ptr;
|
||||
m_channel_list.SetAbaddon(ptr);
|
||||
|
||||
@@ -16,6 +16,7 @@ public:
|
||||
void UpdateChatActiveChannel(Snowflake id);
|
||||
Snowflake GetChatActiveChannel() const;
|
||||
void UpdateChatNewMessage(Snowflake id);
|
||||
void UpdateChatPrependHistory(const std::vector<MessageData> &msgs);
|
||||
|
||||
protected:
|
||||
Gtk::Box m_main_box;
|
||||
|
||||
Reference in New Issue
Block a user