mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
pins: separate msgs, sort and store
This commit is contained in:
1 parent
e166c83d33
commit
d527669d39
4 files changed
+12
-1
No files matched your search
@@ -61,7 +61,7 @@ void ChatList::ProcessNewMessage(const Message &data, bool prepend) {
|
||||
|
||||
ChatMessageHeader *last_row = nullptr;
|
||||
bool should_attach = false;
|
||||
if (m_num_rows > 0) {
|
||||
if (!m_separate_all && m_num_rows > 0) {
|
||||
if (prepend)
|
||||
last_row = dynamic_cast<ChatMessageHeader *>(m_list.get_row_at_index(0));
|
||||
else
|
||||
@@ -210,6 +210,10 @@ std::vector<Snowflake> ChatList::GetRecentAuthors() {
|
||||
return ret;
|
||||
}
|
||||
|
||||
void ChatList::SetSeparateAll(bool separate) {
|
||||
m_separate_all = true;
|
||||
}
|
||||
|
||||
void ChatList::OnScrollEdgeOvershot(Gtk::PositionType pos) {
|
||||
if (pos == Gtk::POS_TOP)
|
||||
m_signal_action_chat_load_history.emit(m_active_channel);
|
||||
|
||||
Reference in new issue
Block a user