server: Don't print out invites if they are from the state.

This commit is contained in:
poljar (Damir Jelić) 2018-07-05 19:23:36 +02:00
parent e4d83b5cf4
commit ae5f97ce1d

View file

@ -688,6 +688,9 @@ class MatrixServer:
left = True
elif isinstance(event, RoomMemberInvite):
if is_state_event:
return
room_buffer.invite(event.invited_user, date)
return