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:
parent
9b2a227294
commit
a4d61ba51b
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue