Commit Graph

140 Commits

Author SHA1 Message Date
Andrew Ferrazzutti d0dc921fd4 Add missing return on "whoami" error 2022-05-02 02:23:15 -04:00
Andrew Ferrazzutti f47bcd3f0c Fix Docker support
- Add .dockerignore files
- Make default Node config force-overwrite its socket file
- puppet.sock -> rpc.sock
- Warn against starting bridge module before node module
2022-05-01 16:38:54 -04:00
Andrew Ferrazzutti e1a03797d8 Docker support 2022-04-29 09:55:53 -04:00
Andrew Ferrazzutti 4c0f2346d8 Update version 2022-04-29 09:55:53 -04:00
Andrew Ferrazzutti 9e8541772d Update roadmap to remove claim about KT not supporting invites
node-kakao supports sending invites, so KT must have them after all
2022-04-29 02:06:28 -04:00
Andrew Ferrazzutti 18ba4707ab Add missing await in leave command 2022-04-29 01:28:15 -04:00
Andrew Ferrazzutti b7df79e65d Copy PL state events with evolve 2022-04-28 22:28:39 -04:00
Andrew Ferrazzutti 780dbed7c2 Set group ownership of systemd service config dir
Also mention that linking to config files is possible
2022-04-28 22:26:33 -04:00
Andrew Ferrazzutti 1a7a11eaf3 Optional instead of | union 2022-04-28 03:45:56 -04:00
Andrew Ferrazzutti 9cb35fc81c Update roadmap 2022-04-28 03:34:40 -04:00
Andrew Ferrazzutti 32181e3257 Actually connect channel add listener
Also be less strict about needing channel_info on portal creation
2022-04-28 03:26:08 -04:00
Andrew Ferrazzutti cf4f40efa2 Command for outbound leaves 2022-04-28 03:26:08 -04:00
Andrew Ferrazzutti e952c05d35 Many fixes thanks to mypy
Also add some missing license headers
2022-04-28 03:26:08 -04:00
Andrew Ferrazzutti 2143282195 Actually check connection during ping command 2022-04-28 03:26:08 -04:00
Andrew Ferrazzutti ee8b0a2fca Improve room creation
Handle topics, and use arguments instead of initial_state objects
2022-04-28 03:26:08 -04:00
Andrew Ferrazzutti 2602e58734 Inbound file messages 2022-04-28 03:26:08 -04:00
Andrew Ferrazzutti c9961d5078 Improve inbound joins, leaves, kicks, and power levels
TODO Channel leaves on backfill
2022-04-28 03:26:07 -04:00
Andrew Ferrazzutti 283ff43769 Don't monitor outbound state events for non-open channel portals
They can never be bridged, so allow them as Matrix-only customizations
2022-04-28 03:26:07 -04:00
Andrew Ferrazzutti eed3baa981 Fix misnaming of called function
It was public, not private
2022-04-23 17:02:53 -04:00
Andrew Ferrazzutti db33378345 Support inbound channel adding, and log remaining events
Also use more consistent grammar for event log messages
2022-04-23 17:01:39 -04:00
Andrew Ferrazzutti 91af7890ac For DM checks, use ID of sender instead of channel
This is more migration away from FB's usage of user IDs as DM IDs
2022-04-23 16:51:48 -04:00
Andrew Ferrazzutti 421bba7f1f Style updates & minor fixes 2022-04-23 16:48:23 -04:00
Andrew Ferrazzutti 143e1f23f8 Fix error on syncing channel with no new messages 2022-04-23 13:58:18 -04:00
Andrew Ferrazzutti 13cb5f87ff Fix inbound blank channel descriptions 2022-04-23 13:56:44 -04:00
Andrew Ferrazzutti 9dd11efc2d Actually apply displayname_template
Also get rid of displayname_preference until it's implemented
2022-04-23 13:55:55 -04:00
Andrew Ferrazzutti 51d02d3c34 Recreate ServiceApiClient on token refresh 2022-04-23 13:51:39 -04:00
Andrew Ferrazzutti eebcef6b08 Add config for custom device name 2022-04-20 23:47:02 -04:00
Andrew Ferrazzutti 163c1c2125 Add Node config for overwriting socket file if it exists 2022-04-20 23:06:37 -04:00
Andrew Ferrazzutti 91448c3005 Update roadmap 2022-04-14 04:35:12 -04:00
Andrew Ferrazzutti b85301d59f Don't log contents of RPC calls
It was asking for trouble
2022-04-14 04:27:23 -04:00
Andrew Ferrazzutti 0a0812515c Fix replies to relayed users' messages 2022-04-14 04:27:23 -04:00
Andrew Ferrazzutti 770b0e447b Try outbound room title & description, and work on outbound room avatar
But they fail with -203 (invalid body)
2022-04-14 04:27:23 -04:00
Andrew Ferrazzutti abf3114203 Better error handling for permission setting and privileged actions 2022-04-14 04:27:23 -04:00
Andrew Ferrazzutti 746756cc3f Improved power level bridging 2022-04-14 04:27:23 -04:00
Andrew Ferrazzutti a12efc92c4 Inbound channel photo & description 2022-04-14 04:27:23 -04:00
Andrew Ferrazzutti d843fcf5d2 Reset RPC min broadcast ID when node module resets
Otherwise, bridge module will ignore events until new broadcast ID
catches up to the old one
2022-04-13 05:19:33 -04:00
Andrew Ferrazzutti b29453a871 Awaitable / Promise cleanups 2022-04-13 05:19:33 -04:00
Andrew Ferrazzutti 7a78d6ba25 Bypass chat cap when backfilling 2022-04-13 05:19:33 -04:00
Andrew Ferrazzutti ecb04fc2f5 Inbound permissions & outbound power levels
Note that these only apply to OpenChannels
2022-04-13 05:19:32 -04:00
Andrew Ferrazzutti a9c7bfe046 Update roadmap with missing edge cases and KT message types 2022-04-12 04:42:26 -04:00
Andrew Ferrazzutti fe6df88a4b Return IDs of bridged outgoing messages instead of the chats themselves
And set an optional property in AudioAttachment to be safe
2022-04-12 04:42:26 -04:00
Andrew Ferrazzutti aa5c066552 Prepend relayed media messages with a new message of who sent it
And keep its body text unchanged from its original
2022-04-12 04:42:26 -04:00
Andrew Ferrazzutti 587ec98f3e Handle serializer errors on connect 2022-04-12 04:42:26 -04:00
Andrew Ferrazzutti 33a8218eee Add missing None check for outbound read receipts 2022-04-12 04:42:26 -04:00
Andrew Ferrazzutti 59c7f1fd2e Add missing command handler connection that I forgot about 2022-04-12 04:42:26 -04:00
Andrew Ferrazzutti af296510aa Reinstate outbound formatting 2022-04-12 04:42:26 -04:00
Andrew Ferrazzutti b2f9298817 Remove some apparently unused inbound formatting 2022-04-12 04:42:26 -04:00
Andrew Ferrazzutti 38d307c684 Fix sometimes-broken inbound mentions 2022-04-12 04:42:26 -04:00
Andrew Ferrazzutti b9cf30e9e6 Don't log contents of what look to be inbound deleted chats 2022-04-12 04:42:26 -04:00
Andrew Ferrazzutti 73f8792b75 Set history & join rules to match KakaoTalk behaviour 2022-04-12 04:42:26 -04:00