Commit Graph

237 Commits

Author SHA1 Message Date
Paul 037db2c8cc Merge branch 'master' of https://github.com/revoltchat/revolt.js 2021-08-18 12:55:28 +01:00
Paul 92df76e044 Bump version to 5.0.1-alpha.7 2021-08-18 12:55:27 +01:00
Paul Makles eb68ac96e2 Merge pull request #1 from mafineeek/master 2021-08-18 12:54:34 +01:00
Kamil G 0a701f8709 async remove 2021-08-18 13:40:24 +02:00
Kamil G 3d6105ef50 return data of sendMessage 2021-08-18 13:39:52 +02:00
Kamil G c0ca0173e0 useless import 2021-08-18 13:38:25 +02:00
Kamil G e30a253927 Revert "version bump ig"
This reverts commit 0c8eb52493.
2021-08-18 13:29:25 +02:00
Kamil G 0c8eb52493 version bump ig 2021-08-18 13:28:28 +02:00
Kamil G a112f8099d <Message>.reply() 2021-08-18 13:23:37 +02:00
Paul 697b618785 Get rid of weird relative imports. 2021-08-18 11:15:50 +01:00
Paul 45321eff56 We do a little patching. Hopefully should fix nightly not starting.
Replaces the system user ID with just strings.
2021-08-18 10:42:02 +01:00
Kamil G eb0900a837 Test reply method 2021-08-18 01:09:12 +02:00
Paul f0ac767494 Fix typings. 2021-08-16 18:56:15 +01:00
Paul 39a716df26 Fix: broadcast message edit event. 2021-08-16 18:48:47 +01:00
Paul 2a14728905 Forgot to return 😐; don't fetch user anyways when getting from cache. 2021-08-15 09:56:25 +01:00
Paul 5ba143763a Fix: Correctly handle object updates.
Fix: Don't re-fetch members on each message.
2021-08-15 09:46:58 +01:00
Paul b7ee3ede9c API: Return servers in mutual route. 2021-08-12 16:16:22 +01:00
Paul 685e7dd7e9 Add bot helper functions. 2021-08-12 15:07:59 +01:00
Paul 6d18ec6782 Fix fetch bot routes. 2021-08-12 14:27:00 +01:00
Paul 343d6e3992 Add support for bot login.
Add flags + bot information for users.
2021-08-12 12:00:07 +01:00
Paul f96059c3ff Do strict type checking on incoming data. 2021-08-08 22:14:32 +01:00
Paul 77717f5b47 Add helper function to mark server as read. 2021-08-07 12:00:33 +01:00
Paul e9021285f7 API: Bump API version.
API: Add mark server as read route.
2021-08-07 11:54:03 +01:00
Paul 0579d7748c Add system message helper. 2021-08-07 10:28:02 +01:00
Paul 24020abd1b Transform incoming date updates. 2021-08-06 13:55:59 +01:00
Paul e9a19c2c7c Time out users who type for too long. 2021-07-31 17:55:09 +01:00
Paul 7e1531804b Fetch all channels when new server discovered. 2021-07-31 16:11:24 +01:00
Paul f88c1bb491 Fix: should sent PUT not POST 2021-07-31 13:56:08 +01:00
Paul 13a62d7514 Handle typing packets. 2021-07-31 13:41:43 +01:00
Paul 81c0c78d6b Support for typing indicators 2021-07-31 13:30:42 +01:00
Paul 54251c5fe8 Don't fetch member for system user. 2021-07-31 12:56:29 +01:00
Paul c484e70968 Construct system user on collection build. 2021-07-31 12:52:31 +01:00
Paul 4944f4756b Handle member update packet. 2021-07-31 12:02:55 +01:00
Paul 0b748c0567 Handle incoming member information. 2021-07-31 11:38:01 +01:00
Paul 301bbc2ef4 Mark permissions as computed values. 2021-07-31 11:34:06 +01:00
Paul 689701a203 Emit changes to relationships directly. 2021-07-31 10:16:15 +01:00
Paul e7e6dba63f Update last_message with incoming messages. 2021-07-31 10:04:24 +01:00
Paul d1ab0edc39 Simplify message API.
Don't emit messages when fetching multiple.
2021-07-31 09:26:05 +01:00
Paul 7ff0c80502 Fallback to empty member for server / channel permissions. 2021-07-31 09:21:34 +01:00
Paul 7eb90cca87 Make members key stable. 2021-07-31 09:13:14 +01:00
Paul c6bfbf81af Fix race condition for messages. 2021-07-30 23:41:34 +01:00
Paul 9d1d27dd78 Serialise member keys. 2021-07-30 23:01:14 +01:00
Paul 4ec0526749 Return objects from fetchMember(s). 2021-07-30 19:51:30 +01:00
Paul f3c7d038a0 Save channels as channel_ids in servers. 2021-07-30 19:44:45 +01:00
Paul d3eac68ddd Add helper functions for getting image URLs. 2021-07-30 19:30:50 +01:00
Paul ccbf694d1b Add permissions to maps. 2021-07-30 19:01:05 +01:00
Paul 7462ed1f11 Fix: Return users not channels. 2021-07-30 17:40:53 +01:00
Paul 0c52a4a3c9 Version 5.0 of revolt.js
Switch to MobX.
2021-07-30 17:27:22 +01:00
Paul 93cecd2232 Remove caching completely. 2021-07-30 12:40:14 +01:00
Paul 88a1cd6bf4 Return user objects when fetching members. 2021-07-29 20:46:50 +01:00