0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

modules/m_receipt: Only broadcast if the user has membership=join.

This commit is contained in:
Jason Volk 2019-08-12 03:40:56 -07:00
parent 9b2a227294
commit a4d61ba51b

View file

@ -498,6 +498,10 @@ try
if(!my(user))
return;
// Only broadcast if the user is joined to the room.
if(!m::room(room_id).membership(user, "join"))
return;
const m::user::room user_room
{
at<"sender"_>(event)