Commit graph

  • 0f08584744 Try to update the highlight status as well in the backlog event. poljar (Damir Jelić) 2018-02-28 18:30:39 +01:00
  • 0b5ceb8526 Another map that doesn't get executed in python3. poljar (Damir Jelić) 2018-02-28 18:30:10 +01:00
  • b2c5a003d2 Remove unused imports. poljar (Damir Jelić) 2018-02-28 15:55:12 +01:00
  • 8e43fe1533 Fix cert digest calculation under python3. poljar (Damir Jelić) 2018-02-28 15:53:33 +01:00
  • cd2788553c Use a for loop instead of map in the join info event. poljar (Damir Jelić) 2018-02-28 15:33:48 +01:00
  • f247daf51d Print out certificate info. poljar (Damir Jelić) 2018-02-28 14:36:59 +01:00
  • f9971ce443 Print out a message when logging in. poljar (Damir Jelić) 2018-02-27 19:55:30 +01:00
  • 6822084d59 Add ability to send emote messages using the /me command. poljar (Damir Jelić) 2018-02-26 23:31:21 +01:00
  • 4f848da7fe Reuse RoomMessageText class for our own messages. poljar (Damir Jelić) 2018-02-26 22:34:14 +01:00
  • 01ad6e9d9a Handle notice messages. poljar (Damir Jelić) 2018-02-26 19:43:52 +01:00
  • 6db44525dc Abstract away unknown messages and emote messages. poljar (Damir Jelić) 2018-02-26 19:35:40 +01:00
  • 2b428ac132 Handle emote messages. poljar (Damir Jelić) 2018-02-26 19:22:54 +01:00
  • 13d70ae867 Handle media messages. poljar (Damir Jelić) 2018-02-26 18:21:05 +01:00
  • 2fc2828dd0 Fix is_formatted check. poljar (Damir Jelić) 2018-02-26 11:40:15 +01:00
  • 2d364c1a8e Small formatting fix. poljar (Damir Jelić) 2018-02-25 20:13:07 +01:00
  • 882a880e60 Handle empty diplay_name for message printing. poljar (Damir Jelić) 2018-02-25 19:23:46 +01:00
  • 15f814bee8 Add room encrytpion event. poljar (Damir Jelić) 2018-02-25 19:18:21 +01:00
  • fb47b94252 Remove unused imports. poljar (Damir Jelić) 2018-02-25 18:53:42 +01:00
  • d97323e7e8 Catch exceptions for room events and print out a error message. poljar (Damir Jelić) 2018-02-25 18:53:11 +01:00
  • 31fc14c27f Fix empty display name handling. poljar (Damir Jelić) 2018-02-25 18:52:55 +01:00
  • 1ec7c8f190 Remove unused ignore_event_list. poljar (Damir Jelić) 2018-02-25 18:12:23 +01:00
  • bf0bffc879 Remove the message type enum. poljar (Damir Jelić) 2018-02-25 18:04:49 +01:00
  • 9f70a1440b Remove room name printing from the room name event. poljar (Damir Jelić) 2018-02-25 18:01:23 +01:00
  • efa663133b Move message handling function into the server class. poljar (Damir Jelić) 2018-02-25 17:59:08 +01:00
  • 6fdea4d213 Refactor of message handling function. poljar (Damir Jelić) 2018-02-25 17:44:55 +01:00
  • a59d72cd15 Move buffer message sorting to the backlog event class. poljar (Damir Jelić) 2018-02-25 17:00:16 +01:00
  • 0aa773ef2f Remove unused code. poljar (Damir Jelić) 2018-02-25 16:52:39 +01:00
  • bed3e1f5e6 Add name and aliases room event handling. poljar (Damir Jelić) 2018-02-25 16:34:20 +01:00
  • 0743bca542 Refactor the message modification in redactions. poljar (Damir Jelić) 2018-02-25 15:29:07 +01:00
  • c12c9b6eb9 Tokens and IDs can't be empty, so raise a value error if they are. poljar (Damir Jelić) 2018-02-25 14:54:20 +01:00
  • 5791a48b3f Handle room redaction events. poljar (Damir Jelić) 2018-02-25 14:50:58 +01:00
  • 99bef42187 Set highlight_tags_restrict to the channel buffers. poljar (Damir Jelić) 2018-02-24 17:56:29 +01:00
  • e0ca75b56a Handle room topic events. poljar (Damir Jelić) 2018-02-24 13:30:45 +01:00
  • ae8aba1a3c Fix the backlog event execution. poljar (Damir Jelić) 2018-02-24 13:28:51 +01:00
  • 542b0bb5af Remove empty room events. poljar (Damir Jelić) 2018-02-24 10:24:19 +01:00
  • add8df517c Add power level handling back. poljar (Damir Jelić) 2018-02-23 20:16:38 +01:00
  • 63e24d56dd Handle state events as well. poljar (Damir Jelić) 2018-02-23 18:57:35 +01:00
  • 28d379a428 Separate the membership events out. poljar (Damir Jelić) 2018-02-23 18:52:10 +01:00
  • b2eacd468f Pass a copy of the tag list for the events. poljar (Damir Jelić) 2018-02-23 15:21:13 +01:00
  • e1723c528c Add membership handling to the room events. poljar (Damir Jelić) 2018-02-23 15:17:12 +01:00
  • f98efe1ab9 Move room classes to rooms.py. poljar (Damir Jelić) 2018-02-22 21:50:13 +01:00
  • 80545dd776 Some renames and reordering. poljar (Damir Jelić) 2018-02-22 21:38:08 +01:00
  • f1ddbc841f Add buffer_modes bar item, used for backlog and encryption status. poljar (Damir Jelić) 2018-02-22 15:02:42 +01:00
  • 11076f9649 More formatting fixes using yapf. poljar (Damir Jelić) 2018-02-22 14:35:14 +01:00
  • 6d4f69e3a2 Disallow sending of multiple backlog messages in parallel. poljar (Damir Jelić) 2018-02-22 14:26:54 +01:00
  • 0fba3016ee Fixup typo for sanitization. poljar (Damir Jelić) 2018-02-22 14:26:35 +01:00
  • 26f38a5193 Get the end token even if there weren't any messages. poljar (Damir Jelić) 2018-02-22 14:10:47 +01:00
  • 0c54c5f1b4 Add missing sanitization calls. poljar (Damir Jelić) 2018-02-22 14:06:25 +01:00
  • 2ac8bef499 Add initial sync event implementation. poljar (Damir Jelić) 2018-02-22 13:39:37 +01:00
  • 9b25026a3a Don't reconnect on a timeout, disconnect does this already. poljar (Damir Jelić) 2018-02-21 17:07:57 +01:00
  • 2f4137933f Reformat the source tree using yapf. poljar (Damir Jelić) 2018-02-21 17:00:11 +01:00
  • 81e078173a Add support for python2 type json exceptions. poljar (Damir Jelić) 2018-02-20 13:37:59 +01:00
  • bd808e4bc2 Don't use the object hook functionality of the json module. poljar (Damir Jelić) 2018-02-20 13:23:19 +01:00
  • 779e346fb3 Use the propper reference for server buffer merges. poljar (Damir Jelić) 2018-02-20 12:40:39 +01:00
  • ed16113afe Style issues. poljar (Damir Jelić) 2018-02-20 12:40:23 +01:00
  • 1c47dff7ae Readd redacted message printing to the backlog event. poljar (Damir Jelić) 2018-02-20 12:35:26 +01:00
  • ee2bcc69cb Add sanitize_token() function. poljar (Damir Jelić) 2018-02-20 10:59:44 +01:00
  • 2741a7807d Reset the send/receive buffers and the http parser on disconnects. poljar (Damir Jelić) 2018-02-20 10:12:14 +01:00
  • b04c952107 Fix the type info for sanitize_id(). poljar (Damir Jelić) 2018-02-16 15:22:10 +01:00
  • 3b77689c7d Add initial backlog event. poljar (Damir Jelić) 2018-02-16 15:15:56 +01:00
  • afd595b780 Clear the send queue when disconnected as well. poljar (Damir Jelić) 2018-02-15 15:28:01 +01:00
  • fc25fe54c9 Check the type while sanitizing a ID. poljar (Damir Jelić) 2018-02-14 15:09:11 +01:00
  • 1466531d48 Drop the dot in error event messages. poljar (Damir Jelić) 2018-02-14 14:53:07 +01:00
  • 272e82aa76 Add invite event class. poljar (Damir Jelić) 2018-02-14 14:52:21 +01:00
  • 32babecb33 Change the empty dict check condition in the leave event. poljar (Damir Jelić) 2018-02-14 14:22:20 +01:00
  • a4a8e448a7 Change the join API to allow joins using aliases. poljar (Damir Jelić) 2018-02-14 14:21:56 +01:00
  • 8c23028c8b Execute the send and join events on an 403 error. poljar (Damir Jelić) 2018-02-14 13:50:54 +01:00
  • 9577472ad2 Add join event class. poljar (Damir Jelić) 2018-02-14 13:48:00 +01:00
  • 2a0cccc191 Add redaction event class. poljar (Damir Jelić) 2018-02-14 13:00:18 +01:00
  • 3232f61f7e Add a ID sanitization function. poljar (Damir Jelić) 2018-02-14 12:40:41 +01:00
  • 4537635db3 Add topic event class. poljar (Damir Jelić) 2018-02-14 11:51:57 +01:00
  • e4f042a6a7 Don't make message sending failures fatal. poljar (Damir Jelić) 2018-02-14 11:33:28 +01:00
  • 1029ce5c1b Refactor event error handling. poljar (Damir Jelić) 2018-02-14 11:11:54 +01:00
  • 773085b515 Disconnect if there is a failure in the connect callback. poljar (Damir Jelić) 2018-02-14 11:08:43 +01:00
  • 6b23dee045 Add SendEvent class. poljar (Damir Jelić) 2018-02-13 15:50:30 +01:00
  • bafa7d23b7 Move the login decode function to the parent class. poljar (Damir Jelić) 2018-02-13 14:06:17 +01:00
  • d045bc4368 Construct the login event while parsing the json. poljar (Damir Jelić) 2018-02-13 13:06:30 +01:00
  • e9c388ca4d Add event classes. poljar (Damir Jelić) 2018-02-13 11:36:00 +01:00
  • 7da03db7c1 Return from the timer callback if we're scheduling a reconnect. poljar (Damir Jelić) 2018-02-13 10:15:05 +01:00
  • f85a5df052 Reset the lag if we're disconnecting. poljar (Damir Jelić) 2018-02-13 10:14:43 +01:00
  • f78bd95d3f Move the json decoding into the MatrixMessage class. poljar (Damir Jelić) 2018-02-13 10:13:40 +01:00
  • 390d08b229 Move the sync and login functions into the server class. poljar (Damir Jelić) 2018-02-12 14:53:19 +01:00
  • da13abc5fa Remove unused get_transaction_id() function. poljar (Damir Jelić) 2018-02-12 14:41:45 +01:00
  • 6f97ba1425 Rename MatrixGenericMessage class. poljar (Damir Jelić) 2018-02-12 14:20:18 +01:00
  • 49b356f510 Remove MatrixMessage class. poljar (Damir Jelić) 2018-02-12 14:17:36 +01:00
  • 8b21e9957d Add invite message class. poljar (Damir Jelić) 2018-02-12 14:15:08 +01:00
  • 7be29e2b3f Add join/part message class. poljar (Damir Jelić) 2018-02-12 13:51:45 +01:00
  • dbf7df2e84 Add backlog message class. poljar (Damir Jelić) 2018-02-12 13:22:48 +01:00
  • aa625f0962 Add redaction message class. poljar (Damir Jelić) 2018-02-12 13:03:32 +01:00
  • d0c695dc09 Add topic message class. poljar (Damir Jelić) 2018-02-12 12:51:33 +01:00
  • 7f9c09c16b Add sync message class. poljar (Damir Jelić) 2018-02-12 12:27:45 +01:00
  • bc6db177a8 Add login message class. poljar (Damir Jelić) 2018-02-12 12:27:20 +01:00
  • b22deceb00 Mypy fixes. poljar (Damir Jelić) 2018-02-12 10:56:28 +01:00
  • 7ab59ec636 Start separating messages into their own subclasses. poljar (Damir Jelić) 2018-02-12 10:55:27 +01:00
  • 1ad643f206 Fix buffer unmerging if we only have one server. poljar (Damir Jelić) 2018-02-12 10:41:12 +01:00
  • 9af4d65b67 Catch the socket error upon socket shutdown. poljar (Damir Jelić) 2018-02-10 15:36:31 +01:00
  • 6b87994a94 Rework of the color handling, add a Formatted class. poljar (Damir Jelić) 2018-02-10 15:34:40 +01:00
  • 4c9069a8b1 Make the room_id part of the kwargs in the MatrixMessage class. poljar (Damir Jelić) 2018-02-08 15:47:25 +01:00
  • 1a804a4dc3 Get rid of the data argument from the MatrixMessage constructor. poljar (Damir Jelić) 2018-02-08 14:53:23 +01:00
  • ef99a13806 Get rid of extra_data in the MatrixMessage class. poljar (Damir Jelić) 2018-02-08 14:40:20 +01:00