server: Enable sending state events to encrypted rooms.

State events are not encrypted so sending them is done as usually.
This commit is contained in:
Damir Jelić 2019-06-27 17:32:39 +02:00
parent 6836365bc7
commit f05d2f0a2b

View file

@ -803,9 +803,6 @@ class MatrixServer(object):
self.send_or_queue(request)
def room_send_state(self, room_buffer, body, event_type):
if room_buffer.room.encrypted:
return
_, request = self.client.room_put_state(
room_buffer.room.room_id, event_type, body
)