|
@@ -116,7 +116,10 @@ def on_matrix_message(room, event):
|
116
|
116
|
content = matrix_homeserver + "/_matrix/media/v1/download/" + event['content']['url'][6:]
|
117
|
117
|
send_webhook(username, avatar, content, event['event_id'])
|
118
|
118
|
if event['type'] == "m.room.redaction" and not user.user_id == matrix_user_id:
|
119
|
|
- message_delete_queue.append(message_id_cache[event['redacts']])
|
|
119
|
+ try:
|
|
120
|
+ message_delete_queue.append(message_id_cache[event['redacts']])
|
|
121
|
+ except KeyError:
|
|
122
|
+ pass
|
120
|
123
|
|
121
|
124
|
matrix_room.add_listener(on_matrix_message)
|
122
|
125
|
matrix_client.start_listener_thread()
|