Fix crash
This commit is contained in:
parent
a1ca8d48cd
commit
29fa9086c6
@ -205,6 +205,8 @@ async def matrix_transaction(request):
|
||||
displayname = sender.name or get_username(user_id)
|
||||
content = event['content']
|
||||
|
||||
if 'msgtype' not in content:
|
||||
continue
|
||||
if content['msgtype'] == 'm.text':
|
||||
msg, mode = format_matrix_msg('<{}> {}', displayname, content)
|
||||
await group.send_text(msg, parse_mode=mode)
|
||||
|
Loading…
Reference in New Issue
Block a user