Tulir Asokan
103bfc31c6
Update dependencies and lots of code
...
* Bump minimum Go version to 1.21
* Add contexts everywhere
* Switch database code to new dbutil patterns
* Finish switching away from maulogger
2024-03-11 22:28:06 +02:00
Tulir Asokan
7e25e2c2da
Fix legacy backfill not checking if conversations have messages
...
Fixes #631
2023-10-16 13:09:37 +03:00
Tulir Asokan
6feebd827b
Add basic newsletter support. Fixes #655
2023-10-13 18:10:26 +03:00
Tulir Asokan
8b1308595f
Add support for collecting incoming galleries into single event
2023-09-04 19:47:00 +03:00
Tulir Asokan
dcd4ca366c
Update whatsmeow and ignore events from @lid users
2023-08-08 15:11:30 +03:00
Tulir Asokan
45e5290f0c
Update mautrix-go to move stuff to util
2023-08-05 19:27:00 +03:00
Tulir Asokan
1ee0841add
Fix function name
2023-06-22 12:49:49 +03:00
Tulir Asokan
c850f6f373
Fix things in legacy backfill
2023-06-19 21:39:25 +03:00
Tulir Asokan
b97b3755dc
Add index on message timestamps
2023-06-16 12:58:57 +03:00
Tulir Asokan
559ac719a4
Store message sender mxid in database
2023-05-31 16:34:30 +03:00
Tulir Asokan
c7b6826455
Update dependencies
2023-04-25 15:48:19 +03:00
vurpo
a6dca47740
Add custom contact info fields to puppet profile ( #605 )
...
* Add custom contact info fields to puppet profile
* Rename the field names in the new contact info
* Set contact info for puppets on startup
* Check for hungry inside the contact info function
* appservice bot: add contact info to bridge bot
Signed-off-by: Sumner Evans <sumner@beeper.com>
* go.sum: tidy
Signed-off-by: Sumner Evans <sumner@beeper.com>
* puppet/UpdateContactInfo: reduce nesting
Signed-off-by: Sumner Evans <sumner@beeper.com>
---------
Signed-off-by: Sumner Evans <sumner@beeper.com>
Co-authored-by: Sumner Evans <sumner@beeper.com>
2023-04-10 18:39:05 +03:00
Tulir Asokan
d320c4ab08
Add more detailed logging when receiving history syncs
2023-03-02 17:33:44 +02:00
Tulir Asokan
c477f46af8
Fix syncing DMs in sync space command
2023-02-15 14:33:53 +02:00
Tulir Asokan
b8127f3545
Remove unused read receipt based disappearing timer
2023-01-16 17:16:01 +02:00
Tulir Asokan
3a5ca36d49
Fix disappearing message timing
2023-01-16 17:15:04 +02:00
Tulir Asokan
1ce4e4a219
Fix some database transaction bugs
2023-01-04 02:13:20 +02:00
Tulir Asokan
0305680317
Add support for creating polls from Matrix
2022-12-23 15:18:16 +02:00
Tulir Asokan
54c61c63e6
Update child portal m.bridge info when updating parent
2022-12-14 01:04:11 +02:00
Tulir Asokan
74e6c5f53e
Clear in_space flag in portals when deleting parent
2022-12-03 16:48:39 +02:00
Tulir Asokan
a1192bd0a4
Add support for communities
2022-12-02 15:36:19 +02:00
Tulir Asokan
4bfd3bd644
Fix marking messages as disappearing while backfilling on SQLite
2022-11-10 23:12:08 +02:00
Tulir Asokan
86e739b6a1
Simplify using optional db transactions
2022-11-10 23:12:08 +02:00
Tulir Asokan
f7064812ea
Update dependencies
2022-11-04 12:54:46 +02:00
Tulir Asokan
1105530c9a
Add initial support for WhatsApp message edits
...
Sending will be disabled by default until official WhatsApp clients
start rendering edits. The implementation may also be incorrect.
2022-10-08 17:47:52 +03:00
Tulir Asokan
7a933124fa
Use transaction for saving reactions in backfill
2022-09-28 15:54:08 +03:00
Tulir Asokan
f79efa9037
Update mautrix-go
2022-08-14 19:37:11 +03:00
Tulir Asokan
3617b991c8
Update whatsmeow
2022-08-01 09:49:27 +03:00
Sumner Evans
17cd75654f
Fix the FindPrivateChats SELECT statement
...
The % needs to be escaped in the LIKE statement.
Closes #532
2022-07-18 19:11:23 -06:00
Tulir Asokan
7ccc0d005e
Remove unused dbms migration function
2022-07-12 13:15:49 +03:00
Tulir Asokan
19b4c3093a
Apply periodic resync for group chats too
2022-06-28 16:22:11 +03:00
Tulir Asokan
9f0901f560
Add periodic ghost avatar resync
2022-06-28 14:37:50 +03:00
Tulir Asokan
40ea8a8324
Stop using SELECT *
2022-06-24 17:53:28 +03:00
Tulir Asokan
8012368de5
Fix backfill queue query. Fixes #517
2022-06-17 10:33:47 +03:00
Tulir Asokan
2463f8e60f
Port some more old db schema upgrades
2022-05-26 11:23:15 +03:00
Tulir Asokan
52748374b7
Actually fix first_expected_ts upgrade. Fixes #504
2022-05-25 23:48:39 +03:00
Tulir Asokan
241de2f18f
Fix changing first_expected_ts column type
2022-05-25 18:51:51 +03:00
Sumner Evans
1f292dc1c5
Merge pull request #502 from mautrix/backfill-queue-fixes
...
backfill: fixes and minor refactors
2022-05-25 08:40:44 -06:00
Sumner Evans
b850995888
backfill: block deferred requests on immediate and forward backfills
2022-05-24 17:34:43 -06:00
Sumner Evans
a0ffed43dd
database/backfill_state: change type of first_expected_ts to BIGINT
2022-05-24 17:34:43 -06:00
Tulir Asokan
66cd7cd080
Fix mixed indent in .sql files
2022-05-23 20:00:08 +03:00
Tulir Asokan
a42c7bca17
Remove unused crypto store and fix comment
2022-05-22 22:03:08 +03:00
Tulir Asokan
a948ea0146
Move a bunch of stuff to mautrix-go
...
See d578d1a610
Database upgrades from before v0.4.0 were squashed, users must update
to at least v0.4.0 before updating beyond this commit.
2022-05-22 01:06:30 +03:00
Sumner Evans
4eac1ea719
backfill state: update during backfill
2022-05-20 10:22:30 -06:00
Sumner Evans
89663c2745
backfill state: add table for tracking state
2022-05-20 10:18:24 -06:00
Sumner Evans
feb9f71cb5
backfill: re-dispatch if 15 minutes have elapsed
...
If 15 minutes have passed since the backfill request was dispatched and
backfill hasn't completed, then re-dispatch.
2022-05-20 10:18:17 -06:00
Tulir Asokan
d33f5aa3d2
Stop ignoring errors deleting backfill queue stuff
2022-05-19 11:45:08 +03:00
Tulir Asokan
68b2d663ac
Fix deleting historical messages of chats that won't be bridged
2022-05-19 11:41:18 +03:00
Tulir Asokan
60496e5976
Fix last message timestamp in history_sync_conversation table
2022-05-19 11:41:02 +03:00
Sumner Evans
ec8f75e50e
backfill: add option to mark unread using account data
2022-05-18 10:40:29 -06:00