aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2024-07-19 18:25:03 +0200
committerMarvin W <git@larma.de>2024-07-19 18:26:18 +0200
commitc95b65e5b47f22b1827f351a59cabb8e5f776def (patch)
tree0c6bb089922a21d8bd3438f6e8caf48082c7a3e6 /libdino/src
parent3497b3898c2bfa8ff669dd46e6619fccda91a162 (diff)
downloaddino-c95b65e5b47f22b1827f351a59cabb8e5f776def.tar.gz
dino-c95b65e5b47f22b1827f351a59cabb8e5f776def.zip
OMEMO: Do not show message for OMEMO messages without payload
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/entity/message.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdino/src/entity/message.vala b/libdino/src/entity/message.vala
index 912639b1..9d1cd43e 100644
--- a/libdino/src/entity/message.vala
+++ b/libdino/src/entity/message.vala
@@ -202,6 +202,7 @@ public class Message : Object {
}
public static uint hash_func(Message message) {
+ if (message.body == null) return 0;
return message.body.hash();
}