fix(matrix): use correct reply_to_message_id parameter name
Fixes #1842 The MessageEvent dataclass expects 'reply_to_message_id' but the Matrix connector was passing 'reply_to'. This caused replies to fail with: MessageEvent.__init__() got an unexpected keyword argument 'reply_to' Changed the parameter name to match the dataclass definition.
This commit is contained in:
parent
6fc4e36625
commit
66f71c1836
1 changed files with 1 additions and 1 deletions
|
|
@ -635,7 +635,7 @@ class MatrixAdapter(BasePlatformAdapter):
|
||||||
source=source,
|
source=source,
|
||||||
raw_message=getattr(event, "source", {}),
|
raw_message=getattr(event, "source", {}),
|
||||||
message_id=event.event_id,
|
message_id=event.event_id,
|
||||||
reply_to=reply_to,
|
reply_to_message_id=reply_to,
|
||||||
)
|
)
|
||||||
|
|
||||||
await self.handle_message(msg_event)
|
await self.handle_message(msg_event)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue