Commit Graph

26 Commits

Author SHA1 Message Date
Andrew Ferrazzutti 57c448e0c3 Contact syncing and invites
* Add ability to sync all LINE contacts, which is relevant because the
  list of recent chats excludes users you haven't spoken to lately.
* Add bot command to list all contacts.
* Allow inviting a puppet to a DM to create a portal for that LINE user,
  instead of having to wait for that user to message you first.
2021-07-19 04:10:10 -04:00
Andrew Ferrazzutti 8c2c0126c9 Sync, store, and poll for incoming read receipts 2021-07-02 14:04:52 -04:00
Andrew Ferrazzutti 1ae30bcf1b Use read receipts to know when to sync media
Instead of having to view a LINE chat when a media message is sent, send
a placeholder message that gets replaced with the actual media when it's
viewed in Matrix.
2021-06-17 00:42:06 -04:00
Andrew Ferrazzutti a3e7caac27 Merge branch 'master' into better-receipts-msc2409 2021-06-16 22:14:26 -04:00
Andrew Ferrazzutti 555b19c289 Always use LINE puppet for own messages
...that are sent from another client.

Also look up the profile data for the user's LINE account on sync,
including at startup, so that there's always a puppet available.
2021-06-15 02:55:55 -04:00
Andrew Ferrazzutti 33ca6223c5 Use MSC2409 to send outgoing read receipts
When a message is viewed in Matrix, make Puppeteer view its LINE chat
2021-06-11 02:53:30 -04:00
Andrew Ferrazzutti 85dc7a842e Don't view LINE DMs whenever possible
Use the sidebar to sync DM messages instead of visiting the DM itself,
so as to not make LINE (and your contact) think you really read the DM.

This cannot be done for non-text messages (which are not previwable in
the sidebar) and non-DM chats (whose sidebar messages don't say who sent
a message).
2021-06-10 02:54:12 -04:00
Andrew Ferrazzutti c5eea7b50b Fix crash when logging in after a forced logout
Also tidy up bridge notices during the login flow
2021-06-08 00:24:00 -04:00
Andrew Ferrazzutti 54507f8aaf Catch getting logged out
Happens when logging into Line on Chrome somewhere else
2021-06-06 18:24:34 -04:00
Andrew Ferrazzutti c8d1d38d21 Incoming read receipts for MRU chats
TODO: poll other chats for read receipts
2021-04-22 02:40:50 -04:00
Andrew Ferrazzutti 0ce6b833e3 Attempt to fix ordering of incoming messages 2021-04-21 02:38:10 -04:00
Andrew Ferrazzutti 36ba98fda1 Outbound images (bad echo) 2021-03-27 03:37:41 -04:00
Andrew Ferrazzutti 884d0d32fe Working avatars and icons 2021-03-26 02:27:21 -04:00
Andrew Ferrazzutti 456ac7ff50 Rename again 2021-03-15 01:40:56 -04:00
Andrew Ferrazzutti 20f419a5c3 multi-user chats 2021-03-14 04:18:22 -04:00
Andrew Ferrazzutti b25bac8cea Rename 2021-02-26 14:19:48 -05:00
Andrew Ferrazzutti ec081e94df Some tweaks and comments 2021-02-26 02:23:59 -05:00
Andrew Ferrazzutti 85814f9793 More changes 2021-02-26 02:22:41 -05:00
Andrew Ferrazzutti 9033ec856b Rename amp->line 2021-02-26 01:28:54 -05:00
Tulir Asokan e7b78f9166 Update mautrix-python and add hacky connection metric 2020-11-03 17:57:51 +02:00
Tulir Asokan a3441a40ae Initial bridge stuff 2020-08-28 16:38:06 +03:00
Tulir Asokan c3f2a5dfe1 Add some disconnection handling and a method to set the last message ID map 2020-08-24 23:29:09 +03:00
Tulir Asokan 0d913d73d7 Add config and improve stopping 2020-08-24 16:45:44 +03:00
Tulir Asokan 814c8cbdb3 Add better shutdown handling 2020-08-24 14:55:44 +03:00
Tulir Asokan 938068703b Catch JSON parse errors 2020-08-18 17:05:53 +03:00
Tulir Asokan dd16b3d461 Add API for puppeteer script 2020-08-18 16:47:16 +03:00