Commit graph

198 commits

Author SHA1 Message Date
Tulir Asokan
7bf470d69e Add portal rooms to user-specific community for filtering 2019-08-10 15:28:12 +03:00
Tulir Asokan
07b8936985
Change default port to 29318 2019-07-28 18:29:30 +03:00
Tulir Asokan
1474288b82 Cache modules when building and include example config in artifacts 2019-07-27 17:15:45 +03:00
Tulir Asokan
d59d2c61ee Add .gitlab-ci.yml 2019-07-27 17:03:05 +03:00
Andrew Morgan
5d0b15f7f7 Remove command prefix from reconnect prompt (#81) 2019-07-18 00:22:00 +03:00
Tulir Asokan
35e28feb7c Update deps 2019-07-18 00:18:01 +03:00
Tulir Asokan
91e8000c14 Edit message with regenerated QR code when logging in 2019-07-18 00:17:25 +03:00
Tulir Asokan
7f0a0df7de Convert newlines to <br> in whatsapp->matrix formatted messages 2019-07-18 00:17:25 +03:00
Tulir Asokan
921c1209ea Enable foreign keys in SQLite 2019-07-18 00:17:25 +03:00
progserega
92958343dd Add option to allow inviting other users in portal rooms (#77)
This doesn't mean the invited users get bridged, but for some use cases that doesn't matter
2019-07-16 12:16:17 +03:00
Tulir Asokan
29f5ae45c4 Print clean websocket disconnections if they weren't announced by the server beforehand
Also print message send errors when Session is not nil even if Connection is nil
2019-07-04 15:08:59 +03:00
Tulir Asokan
2023f55f32 Recover from panics in event handlers 2019-06-18 08:24:17 +03:00
Tulir Asokan
45e60c2510 Update go-whatsapp 2019-06-16 23:00:45 +03:00
Tulir Asokan
5be78dd978 Fix the crash in #69 2019-06-13 21:30:38 +03:00
Tulir Asokan
2bc0e52250 Fix puppet db inserts. Fixes #69 2019-06-13 21:28:14 +03:00
Tulir Asokan
d270c86709 Update go-whatsapp 2019-06-12 12:38:07 +03:00
Tulir Asokan
c4186c9029 Update deps and add real version for go-whatsapp dep
Closes #66
2019-06-01 20:18:24 +03:00
Tulir Asokan
e124641107 Add option to set private chat portal rooms' name/avatar explicitly 2019-06-01 20:03:29 +03:00
Tulir Asokan
9fa0ad923d Fix potential nil pointer crash 2019-06-01 19:20:06 +03:00
Tulir Asokan
4a13ae731a Fix custom puppet start loop 2019-05-31 23:07:33 +03:00
Tulir Asokan
3345615fc0 Fix indentation in filter json 2019-05-31 23:03:09 +03:00
Tulir Asokan
2bf3edda16 Add logout-matrix command 2019-05-31 23:02:00 +03:00
Tulir Asokan
1285aa4327 Fix fetching more than one chunk of initial history 2019-05-31 22:30:57 +03:00
Tulir Asokan
37fd5dba2c Fix syncing chats for users with old chats 2019-05-31 21:59:23 +03:00
Tulir Asokan
83f4cf2811 Fix crash and add more logging 2019-05-31 20:51:16 +03:00
Tulir Asokan
a40584db41 Add command to delete all own portals for a fresh start 2019-05-31 19:33:18 +03:00
Tulir Asokan
37cd34e4bf Make contact wait delay configurable and fix nil pointer usage 2019-05-30 20:25:04 +03:00
Tulir Asokan
02f78155b5 Only invite default puppet for backfilling when needed 2019-05-30 17:48:22 +03:00
Tulir Asokan
521a8b74aa Share backfill start/end code between initial and recovery fills 2019-05-30 17:25:56 +03:00
Tulir Asokan
c4751f4953 Use default puppet when backfilling to avoid rate limits 2019-05-30 17:22:03 +03:00
Tulir Asokan
a9fd97932b Send alerts about incoming calls 2019-05-30 17:00:36 +03:00
Tulir Asokan
1c009b96fe Only load 50 messages per request in initial fill 2019-05-28 21:48:37 +03:00
Tulir Asokan
dce08b1422 Add user-portal mapping to database 2019-05-28 21:31:25 +03:00
Tulir Asokan
666194b066 Possibly fix and/or break missed message backfilling 2019-05-28 21:30:39 +03:00
Tulir Asokan
063ec7873d Don't allow unsupported database versions without flag 2019-05-28 21:29:43 +03:00
Tulir Asokan
1d43aeca2f Remove message locking as message handling is synchronous per-portal 2019-05-28 14:12:35 +03:00
Tulir Asokan
7f0c67168c Fix potential autoreconnect problem and add exponential backoff 2019-05-28 14:09:49 +03:00
Tulir Asokan
498c0e4130 Ignore invalid data received errors 2019-05-27 14:15:45 +03:00
Tulir Asokan
3f13e13d36 Make not connected errors in sync handling non-fatal 2019-05-27 14:01:30 +03:00
Tulir Asokan
402f482db3 Update deps 2019-05-27 13:48:11 +03:00
Tulir Asokan
bfe5af7edc Add Matrix->WhatsApp EDU bridging 2019-05-27 13:46:04 +03:00
Tulir Asokan
5346e01d2a Add logging for custom puppets and save next batch properly 2019-05-24 14:09:48 +03:00
Tulir Asokan
0db44d4cc7 Remove dev replaces in go.mod again 2019-05-24 02:36:59 +03:00
Tulir Asokan
2c9c473040 Add basic Matrix puppeting support
May contain bugs.
EDUs from /sync are not yet handled.
2019-05-24 02:33:30 +03:00
Tulir Asokan
95e62fae77 Upgrade message content in db to new protocol schema 2019-05-24 01:09:42 +03:00
Tulir Asokan
8d0d5ff504 Switch sync command to use syncPortals and syncPuppets methods used at startup 2019-05-23 22:57:59 +03:00
Tulir Asokan
5eb06ee43c Update go-whatsapp with new proto version 2019-05-23 22:57:19 +03:00
Tulir Asokan
0408db5c07 Add config option for max age of chats to sync 2019-05-23 20:25:46 +03:00
Tulir Asokan
239de25bf0 Don't connect in reconnect command if the user is not logged in 2019-05-23 20:11:55 +03:00
Tulir Asokan
f9c3e99d10 Fix/change things 2019-05-23 20:09:22 +03:00