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
This commit is contained in:
Marvin W 2023-03-01 20:02:02 +01:00
parent 76e1410c2a
commit 74ca991ddf
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A

View file

@ -150,7 +150,7 @@ public class ConversationItemSkeleton : Plugins.ConversationItemWidgetInterface,
if (item.encryption != Encryption.NONE && item.encryption != Encryption.UNKNOWN && ci != null) { if (item.encryption != Encryption.NONE && item.encryption != Encryption.UNKNOWN && ci != null) {
string? icon_name = null; string? icon_name = null;
var encryption_entry = app.plugin_registry.encryption_list_entries[item.encryption]; 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.icon_name = icon_name ?? "changes-prevent-symbolic";
encryption_image.visible = true; encryption_image.visible = true;
} }