From ae5f97ce1d19291e8d5d8c90904f328c4283d229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Thu, 5 Jul 2018 19:23:36 +0200 Subject: [PATCH] server: Don't print out invites if they are from the state. --- matrix/server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/matrix/server.py b/matrix/server.py index 755ab89..f5278c8 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -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