aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2023-03-01 20:02:02 +0100
committerMarvin W <git@larma.de>2023-03-02 00:02:35 +0100
commit74ca991ddf89a1ff9096303ab64ac861003c492f (patch)
treee41ee23bee9c534178c0bbba460cbea7646c32ce
parent76e1410c2aaa14a14d43851afc05f3793628cabc (diff)
downloaddino-74ca991ddf89a1ff9096303ab64ac861003c492f.tar.gz
dino-74ca991ddf89a1ff9096303ab64ac861003c492f.zip
Fix critical warnings after DTLS-SRTP calls without OMEMO verification
libdino-CRITICAL **: dino_plugins_encryption_list_entry_get_encryption_icon_name: assertion 'self != NULL' failed
-rw-r--r--main/src/ui/conversation_content_view/conversation_item_skeleton.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala
index b6c0f7c6..bbde76b1 100644
--- a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala
+++ b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala
@@ -150,7 +150,7 @@ public class ConversationItemSkeleton : Plugins.ConversationItemWidgetInterface,
if (item.encryption != Encryption.NONE && item.encryption != Encryption.UNKNOWN && ci != null) {
string? icon_name = null;
var encryption_entry = app.plugin_registry.encryption_list_entries[item.encryption];
- icon_name = encryption_entry.get_encryption_icon_name(conversation, ci.content_item);
+ if (encryption_entry != null) icon_name = encryption_entry.get_encryption_icon_name(conversation, ci.content_item);
encryption_image.icon_name = icon_name ?? "changes-prevent-symbolic";
encryption_image.visible = true;
}