update pins window on pin/unpin

This commit is contained in:
ouwou
2021-06-23 02:09:07 -04:00
parent 7db2675087
commit 41d60e5e90
6 changed files with 61 additions and 4 deletions

View File

@@ -280,6 +280,12 @@ void ChatList::SetUsePinnedMenu() {
m_use_pinned_menu = true;
}
void ChatList::ActuallyRemoveMessage(Snowflake id) {
auto it = m_id_to_widget.find(id);
if (it != m_id_to_widget.end())
RemoveMessageAndHeader(it->second);
}
void ChatList::OnScrollEdgeOvershot(Gtk::PositionType pos) {
if (pos == Gtk::POS_TOP)
m_signal_action_chat_load_history.emit(m_active_channel);