mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Change event.react() to use client.react()
This commit is contained in:
parent
d56ec94d34
commit
72b7e81f97
@ -72,9 +72,7 @@ class MaubotMessageEvent(MessageEvent):
|
|||||||
return self.client.send_receipt(self.room_id, self.event_id, "m.read")
|
return self.client.send_receipt(self.room_id, self.event_id, "m.read")
|
||||||
|
|
||||||
def react(self, key: str) -> Awaitable[None]:
|
def react(self, key: str) -> Awaitable[None]:
|
||||||
content = ReactionEventContent(relates_to=RelatesTo(rel_type=RelationType.ANNOTATION,
|
return self.client.react(self.room_id, self.event_id, key)
|
||||||
event_id=self.event_id, key=key))
|
|
||||||
return self.client.send_message_event(self.room_id, EventType.REACTION, content)
|
|
||||||
|
|
||||||
|
|
||||||
class MaubotMatrixClient(MatrixClient):
|
class MaubotMatrixClient(MatrixClient):
|
||||||
|
Loading…
Reference in New Issue
Block a user