diff --git a/matrix/events.py b/matrix/events.py index 0a38034..90b78a1 100644 --- a/matrix/events.py +++ b/matrix/events.py @@ -150,16 +150,6 @@ class MatrixSendEvent(MatrixEvent): self.message = message MatrixEvent.__init__(self, server) - def execute(self): - tags = [ - "matrix_message", "notify_none", "no_highlight", "self_msg", "log1" - ] - - buff = self.server.buffers[self.room_id] - room = self.server.rooms[self.room_id] - - self.message.execute(self.server, room, buff, tags) - @classmethod def from_dict(cls, server, room_id, message, parsed_dict): try: diff --git a/matrix/rooms.py b/matrix/rooms.py index 09e61a4..07f9ef6 100644 --- a/matrix/rooms.py +++ b/matrix/rooms.py @@ -428,12 +428,7 @@ class RoomMessageSimple(RoomMessageEvent): class RoomMessageUnknown(RoomMessageSimple): - - def execute(self, server, room, buff, tags): - msg = ("Unknown message of type {t}, body: {body}").format( - t=self.message_type, body=self.message) - - self._print_message(msg, room, buff, tags) + pass class RoomMessageText(RoomMessageEvent):