aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-12-19 18:14:37 +0100
committerfiaxh <git@lightrise.org>2019-12-19 18:21:44 +0100
commit9565140f01cf95c42bc91aab21130bd1d06b0156 (patch)
tree7bfb4d9ea473787d94498802349698ae163220f5 /main
parent2938c685a2ad5c20eeeb6a27fee47581df2a4a2a (diff)
downloaddino-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.vala2
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) {