From f6f71fbbce58a5f1ace4d664627730c2c53a48b0 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 11 Jul 2019 16:20:26 -0700 Subject: [PATCH] modules/m_receipt: Make event_id in content required. --- modules/m_receipt.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/m_receipt.cc b/modules/m_receipt.cc index e0273439a..39b9ed790 100644 --- a/modules/m_receipt.cc +++ b/modules/m_receipt.cc @@ -508,7 +508,7 @@ try const json::string &event_id { - at<"content"_>(event).get("event_id") + at<"content"_>(event).at("event_id") }; // Lastly, we elide broadcasts of receipts for a user's own message.