Merge branch 'master' of code.monkeystew.net:thrrgilag/pnut-matrix

This commit is contained in:
Morgan McMillian 2018-01-09 16:28:53 -08:00
commit b4923409be

View file

@ -131,7 +131,7 @@ def on_receive_events(transaction):
r_event = MatrixMsgEvents.query.filter_by(event_id=event['redacts'],room_id=event['room_id']).first()
if r_event:
if r_event.pnut_user == app.config['MATRIX_PNUT_USER']:
token = token == app.config['MATRIX_PNUT_TOKEN']
token = app.config['MATRIX_PNUT_TOKEN']
else:
r_user = MatrixUser.query.filter_by(pnut_id=r_event.pnut_user).first()
if r_user: