diff options
author | fiaxh <git@lightrise.org> | 2019-12-19 18:14:37 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-12-19 18:21:44 +0100 |
commit | 9565140f01cf95c42bc91aab21130bd1d06b0156 (patch) | |
tree | 7bfb4d9ea473787d94498802349698ae163220f5 /main | |
parent | 2938c685a2ad5c20eeeb6a27fee47581df2a4a2a (diff) | |
download | dino-9565140f01cf95c42bc91aab21130bd1d06b0156.tar.gz dino-9565140f01cf95c42bc91aab21130bd1d06b0156.zip |
!fixup Allow inserting messages into ConversationView with same sort_time as the latest
Diffstat (limited to 'main')
-rw-r--r-- | main/src/ui/conversation_summary/conversation_view.vala | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |