From 9565140f01cf95c42bc91aab21130bd1d06b0156 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 19 Dec 2019 18:14:37 +0100 Subject: !fixup Allow inserting messages into ConversationView with same sort_time as the latest --- main/src/ui/conversation_summary/conversation_view.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/ui') diff --git a/main/src/ui/conversation_summary/conversation_view.vala b/main/src/ui/conversation_summary/conversation_view.vala index 4c5d1ace..9b90622a 100644 --- a/main/src/ui/conversation_summary/conversation_view.vala +++ b/main/src/ui/conversation_summary/conversation_view.vala @@ -164,7 +164,7 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins public void insert_item(Plugins.MetaConversationItem item) { if (meta_items.size > 0) { - bool after_last = meta_items.last().sort_time.compare(item.sort_time) < 0; + bool after_last = meta_items.last().sort_time.compare(item.sort_time) <= 0; bool within_range = meta_items.last().sort_time.compare(item.sort_time) > 0 && meta_items.first().sort_time.compare(item.sort_time) < 0; bool accept = within_range || (at_current_content && after_last); if (!accept) { -- cgit v1.2.3-70-g09d2