server: Don't print out invites if they are from the state.
This commit is contained in:
parent
e4d83b5cf4
commit
ae5f97ce1d
1 changed files with 3 additions and 0 deletions
|
@ -688,6 +688,9 @@ class MatrixServer:
|
||||||
left = True
|
left = True
|
||||||
|
|
||||||
elif isinstance(event, RoomMemberInvite):
|
elif isinstance(event, RoomMemberInvite):
|
||||||
|
if is_state_event:
|
||||||
|
return
|
||||||
|
|
||||||
room_buffer.invite(event.invited_user, date)
|
room_buffer.invite(event.invited_user, date)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue