From bf9b053d365344476b13e837f0b9da28cf8220f9 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 12 Apr 2021 02:21:26 -0400 Subject: split messages from the same author after 10 mins --- components/chatmessage.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'components/chatmessage.cpp') diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp index 8608fdc..97d6d4a 100644 --- a/components/chatmessage.cpp +++ b/components/chatmessage.cpp @@ -1210,4 +1210,8 @@ void ChatMessageHeader::AddContent(Gtk::Widget *widget, bool prepend) { m_content_box->add(*widget); if (prepend) m_content_box->reorder_child(*widget, 1); + if (auto *x = dynamic_cast(widget)) { + if (x->ID > NewestID) + NewestID = x->ID; + } } -- cgit v1.2.3