summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-07-10 19:19:48 -0400
committertrilene <trilene@runbox.com>2020-07-10 19:19:48 -0400
commit7a206441c86cd2aa84cbbbc6be803f03b2f355ab (patch)
tree1fe734ab983daa8998eb23432bd560d7dabf7866 /src/Cache.cpp
parentFix m.relates_to being sent as 'null' when not set in encrypted messages. (diff)
downloadnheko-7a206441c86cd2aa84cbbbc6be803f03b2f355ab.tar.xz
Support voice calls
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp
index d9d1134e..d435dc56 100644
--- a/src/Cache.cpp
+++ b/src/Cache.cpp
@@ -1364,6 +1364,9 @@ Cache::getLastMessageInfo(lmdb::txn &txn, const std::string &room_id)
 
                 if (!(obj["event"]["type"] == "m.room.message" ||
                       obj["event"]["type"] == "m.sticker" ||
+                      obj["event"]["type"] == "m.call.invite" ||
+                      obj["event"]["type"] == "m.call.answer" ||
+                      obj["event"]["type"] == "m.call.hangup" ||
                       obj["event"]["type"] == "m.room.encrypted"))
                         continue;