server: Fix encryption queue emptying.

This commit is contained in:
Damir Jelić 2019-02-12 11:59:53 +01:00
parent e4a2e2df88
commit 6a1901c0ac

View file

@ -1391,7 +1391,7 @@ class MatrixServer(object):
if not self.room_send_message(room_buffer,
message.formatted_message,
message.message_type):
self.encryption_queue.pop()
self.encryption_queue[room_id].pop()
self.encryption_queue[room_id].appendleft(message)
break
except OlmTrustError: