diff options
author | Marvin W <git@larma.de> | 2024-07-19 18:25:03 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2024-07-19 18:26:18 +0200 |
commit | c95b65e5b47f22b1827f351a59cabb8e5f776def (patch) | |
tree | 0c6bb089922a21d8bd3438f6e8caf48082c7a3e6 /libdino | |
parent | 3497b3898c2bfa8ff669dd46e6619fccda91a162 (diff) | |
download | dino-c95b65e5b47f22b1827f351a59cabb8e5f776def.tar.gz dino-c95b65e5b47f22b1827f351a59cabb8e5f776def.zip |
OMEMO: Do not show message for OMEMO messages without payload
Diffstat (limited to 'libdino')
-rw-r--r-- | libdino/src/entity/message.vala | 1 |
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(); } |