From f31e96d6bb51448a87edd820ebca630ca576d890 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 4 Dec 2020 17:10:46 +0100 Subject: Improve contact description in OMEMO warnings fixes #947 --- main/src/ui/conversation_content_view/conversation_view.vala | 1 + 1 file changed, 1 insertion(+) (limited to 'main') diff --git a/main/src/ui/conversation_content_view/conversation_view.vala b/main/src/ui/conversation_content_view/conversation_view.vala index 0d61a0d1..e46cd71f 100644 --- a/main/src/ui/conversation_content_view/conversation_view.vala +++ b/main/src/ui/conversation_content_view/conversation_view.vala @@ -412,6 +412,7 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins private bool can_merge(Plugins.MetaConversationItem upper_item /*more recent, displayed below*/, Plugins.MetaConversationItem lower_item /*less recent, displayed above*/) { return upper_item.display_time != null && lower_item.display_time != null && upper_item.display_time.difference(lower_item.display_time) < TimeSpan.MINUTE && + upper_item.jid != null && lower_item.jid != null && upper_item.jid.equals(lower_item.jid) && upper_item.encryption == lower_item.encryption && (upper_item.mark == Message.Marked.WONTSEND) == (lower_item.mark == Message.Marked.WONTSEND); -- cgit v1.2.3-70-g09d2