summaryrefslogtreecommitdiff
path: root/components/chatlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'components/chatlist.cpp')
-rw-r--r--components/chatlist.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/chatlist.cpp b/components/chatlist.cpp
index 57d797f..8fd28a5 100644
--- a/components/chatlist.cpp
+++ b/components/chatlist.cpp
@@ -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);