From d469015e9589d8695697fc26d184c49ec76365d8 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 27 Feb 2019 18:08:42 -0800 Subject: [PATCH] modules/client/sync/rooms/ephemeral/receipt: Filter my origin only. --- modules/client/sync/rooms/ephemeral/receipt.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/client/sync/rooms/ephemeral/receipt.cc b/modules/client/sync/rooms/ephemeral/receipt.cc index 565b4eeee..d33ca0d18 100644 --- a/modules/client/sync/rooms/ephemeral/receipt.cc +++ b/modules/client/sync/rooms/ephemeral/receipt.cc @@ -38,6 +38,9 @@ ircd::m::sync::room_ephemeral_m_receipt_m_read_linear(data &data) if(json::get<"type"_>(*data.event) != "m.receipt") return false; + if(!my_host(json::get<"origin"_>(*data.event))) + return false; + _handle_message_receipt(data, *data.event); return true; }