8go / 8go/matrix-commander

verification failed

Open
#198 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
754
Forks
69
PR merge metrics
No merged PRs in 30d

Description

using version 8.0.4, verification failed with the following error

```
Traceback (most recent call last):
File "/home/user/app/.venv/lib/python3.12/site-packages/matrix_commander/matrix_commander.py", line 1248, in to_device_callback
"transaction_id": event.transaction_id,
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'UnknownToDeviceEvent' object has no attribute 'transaction_id'
```

I fixed this by replacing

```
sas = client.key_verifications[event.transaction_id]

done_message = ToDeviceMessage(
type="m.key.verification.done",
recipient=event.sender,
recipient_device=sas.other_olm_device.device_id,
content={
"transaction_id": event.transaction_id,
},
)
```

with

```
sas = client.key_verifications[event.source['content']['transaction_id']]

done_message = ToDeviceMessage(
type="m.key.verification.done",
recipient=event.sender,
recipient_device=sas.other_olm_device.device_id,
content={
"transaction_id": event.source['content']['transaction_id'],
},
)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.