0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 12:48:54 +02: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)) if(!my(user))
return; 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 const m::user::room user_room
{ {
at<"sender"_>(event) at<"sender"_>(event)