diff --git a/modules/m_receipt.cc b/modules/m_receipt.cc index c74a1eb35..142ac428d 100644 --- a/modules/m_receipt.cc +++ b/modules/m_receipt.cc @@ -400,6 +400,11 @@ try at<"content"_>(event).get("event_id") }; + // Lastly, we elide broadcasts of receipts for a user's own message. + m::user::id::buf sender_buf; + if(m::get(std::nothrow, event_id, "sender", sender_buf) == user.user_id) + return; + const time_t &ms { at<"content"_>(event).get("ts", 0)