Commit Graph

110 Commits

Author SHA1 Message Date
Paul 2bb520148c Breaking API change. 2021-03-31 21:35:04 +01:00
Paul 65ef95c853 Add join_call. 2021-03-31 14:10:40 +01:00
Paul cec93fa513 Fetch group recipients upon first seeing a group. 2021-03-30 21:52:02 +01:00
Paul 28ae2e307e Fix a bug where we don't open saved messages channels. 2021-03-30 21:34:49 +01:00
Paul 2bb1567c63 Update dependencies, specifically axios. 2021-03-30 21:20:08 +01:00
Paul 38ebbc2967 Fix opening existing DM. 2021-03-02 09:40:49 +00:00
Paul cb7029dd53 Allow string messages and make nonce optional. 2021-03-01 21:55:17 +00:00
Paul aa886d3bcb Fetch users when they join. 2021-02-28 19:51:01 +00:00
Paul 04b5bfe183 Fix channel delete. 2021-02-27 21:42:33 +00:00
Paul e8513276d8 Fix openDM; also fetch existing if exists. 2021-02-27 20:48:06 +00:00
Paul 3797ebd1c5 Bump ver. 2021-02-27 15:16:32 +00:00
Paul 126e4231e1 Make sure websocket is connected; send heartbeat. 2021-02-27 15:16:06 +00:00
Paul f4ecd615c6 Log out properly. 2021-02-27 14:50:28 +00:00
Paul c0c0be44eb Fix recipients array being filled twice. 2021-02-27 08:10:20 +00:00
Paul 6380beb2e8 Fix message event double-send. 2021-02-26 13:51:50 +00:00
Paul d0b4ca46bd Fix restore(); 2021-02-25 18:56:47 +00:00
Paul bc5b6a79df Make attachment optional, add recp util; restore uid. 2021-02-25 18:29:52 +00:00
Paul 4196816f85 Fix fetchMessages type. 2021-02-25 18:00:10 +00:00
Paul c58441e53f Add message actions to channel map. 2021-02-25 17:20:34 +00:00
Paul 2ba8e289ee Small changes before release. 2021-02-25 10:44:33 +00:00
Paul b7b54a71b8 Switch from classes to plain objects for channels / users. 2021-02-24 20:47:36 +00:00
Paul Makles 58149f3afd Actually emit packet event. 2021-02-19 17:03:56 +00:00
Paul Makles 7ac90dd157 Fix ws client not set. 2021-02-19 16:44:13 +00:00
Paul Makles 1059dbccbd Expose strongly typed send function. 2021-02-19 16:30:50 +00:00
Paul Makles 1139251d7b Update API definitions. 2021-02-19 15:55:51 +00:00
Paul Makles fcea45699d Add Push API routes. 2021-02-18 14:23:44 +00:00
Paul Makles 76bd8d6900 Take correct substr of short content; emit patch on channels. 2021-02-17 14:44:28 +00:00
Paul Makles 27df3f7a2d Better typings for sendMessage. 2021-02-16 17:56:25 +00:00
Paul Makles c9317a67c8 Rebuild completely each time; make attachment optional. 2021-02-16 16:02:50 +00:00
Paul Makles 2ecdf7ef1d Attachment support. 2021-02-16 15:47:19 +00:00
Paul Makles b9db3c8959 Update API. 2021-02-16 09:54:13 +00:00
Paul Makles fbb0a599ef Fix add friend. 2021-02-14 13:26:05 +00:00
Paul Makles 7de6344c4d Fetch config automatically, fix another mis-match. 3.0.3-alpha.1 2021-02-13 20:16:57 +00:00
Paul Makles 993144c8ec Add a way to reset the client; add invite_only field. 3.0.3-alpha.0 2021-02-13 20:05:01 +00:00
Paul Makles e205f3f7d6 Add all rAuth route types. 3.0.2 2021-02-13 11:50:53 +00:00
Paul Makles 48e218a817 Re-write typings for Axios. 2021-02-13 11:36:54 +00:00
Paul Makles cd79c9bd8b Fix fetchMessage being called with undefined id. 3.0.1-beta.14 2021-02-06 17:40:25 +00:00
Paul Makles 15e7b569f2 Patch lastMessage as well. 2021-01-27 15:53:29 +00:00
Paul Makles fd2b19fcef Patch DM channel on message. 2021-01-27 15:35:38 +00:00
Paul Makles 96ec4f0795 Update "edited" object locally. 2021-01-27 14:20:48 +00:00
Paul Makles 10f9be875c Include connection status on WS client. 2021-01-27 11:49:44 +00:00
Paul Makles 15a0029f46 Switch to EventEmitter3. 2021-01-27 11:06:39 +00:00
Paul Makles 7895d74ee1 Fix defaults relating to User in patch(). 3.0.1-beta.8 2021-01-26 21:55:22 +00:00
Paul Makles 5cfb37c859 Patch last_message object on channels when receiving messages. 2021-01-24 11:12:58 +00:00
Paul Makles 118b612631 Catch last_message object. 2021-01-24 10:35:15 +00:00
Paul Makles 93404b82fb Fix bug. 2021-01-22 12:26:30 +00:00
Paul Makles cce875d498 Add fetchMessages(). 2021-01-22 11:36:28 +00:00
Paul Makles 0698ae195d Update ver. 2021-01-20 20:52:58 +00:00
Paul Makles 1845af1cca Add getName() for channels, find recipient for DM channels. 2021-01-20 20:52:49 +00:00
Paul Makles e75086fb0b Prevent 'message' firing twice. (in cases where notification is faster) 2021-01-20 20:19:50 +00:00