Commit graph

139 commits

Author SHA1 Message Date
Tulir Asokan
adc7257490 Add admin command to delete portal and fix some other things 2019-05-21 21:06:27 +03:00
Tulir Asokan
9c8a75583e Update deps 2019-05-20 18:46:18 +03:00
Tulir Asokan
bd1d60639c Switch to go-whatsapp fork to test json parse error fix 2019-05-20 18:45:16 +03:00
Tulir Asokan
23747d4917 Add automatic connection retries 2019-05-17 23:53:57 +03:00
Tulir Asokan
38540d8efb Make max database connection count configurable and default to 20 2019-05-17 23:33:27 +03:00
Tulir Asokan
6cda7ab549 Add ON DELETE CASCADE for future sqlite databases too 2019-05-17 13:10:46 +03:00
Tulir Asokan
33148909d6 Remove dev replaces in go.mod again 2019-05-17 02:33:49 +03:00
Tulir Asokan
b0d774a5a5 Add database migrations and handle leaving private chat portals. Fixes #7 2019-05-16 21:26:43 +03:00
Tulir Asokan
97e740d93d Maybe improve connecting errors 2019-05-16 18:24:59 +03:00
Tulir Asokan
2381eb029b Report WhatsApp server connection errors to user too. Fixes #18 2019-05-16 18:18:11 +03:00
Tulir Asokan
b5af35684d Make connection timeout configurable 2019-05-16 18:08:30 +03:00
Tulir Asokan
5d0edda04a Add command to delete session information to force logout when the bridge gets stuck 2019-05-16 18:00:46 +03:00
Tulir Asokan
c1e1964fc5 Add WhatsApp<->Matrix redaction bridging 2019-05-16 02:25:13 +03:00
Tulir Asokan
ae92d71d5a Handle connection failures like disconnections 2019-05-16 01:56:33 +03:00
Tulir Asokan
f39fd0ac46 Update mautrix-go 2019-05-16 00:51:45 +03:00
Tulir Asokan
e5085b87c7 Log message ID when failing to download media 2019-05-16 00:35:04 +03:00
Tulir Asokan
e25bf29609 Handle startup connection errors 2019-05-16 00:18:43 +03:00
Tulir Asokan
7fb5cfe884 Remove dev replaces that were accidentally committed 2019-05-15 23:17:31 +03:00
Tulir Asokan
adbdf55926 Improve edge case handling in login command by not assuming connection status 2019-05-15 23:17:09 +03:00
Tulir Asokan
6b73c66e12 Improve connection error handling 2019-05-15 23:04:09 +03:00
Tulir Asokan
69879df346 Update deps 2019-05-15 21:49:16 +03:00
Imran Iqbal
c1dc551af7 Remove currently unused from bridge config comment in example-config.yaml (#58) 2019-04-06 22:41:25 +03:00
Andrew Morgan
99ce84151a Add comma to sentence (#54)
Makes it read nicer.
2019-04-06 22:41:15 +03:00
Tulir Asokan
043820755f Revert go-whatsapp update again
This partly reverts commit b092e71a44
2019-03-30 19:25:26 +02:00
Tulir Asokan
3ed2522a10 Merge pull request #50 from rreuvekamp/fix/panic-when-using-auth-command
Disallow using session commands when not logged in
2019-03-15 22:15:42 +02:00
Remi Reuvekamp
31ef9d339f Disallow using session commands when not logged in
This fixes panics that happen because the handlers assume the user is logged
in when the command is executed.

Example of a panic that happened:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x928d7c]

goroutine 127 [running]:
main.(*CommandHandler).CommandList(0xc0001783c0, 0xc00016bef8)
	/build/commands.go:186 +0x6c
main.(*CommandHandler).Handle(0xc0001783c0, 0xc000455920, 0x1b,
0xc0002480c0, 0xc000250470, 0x4)
	/build/commands.go:89 +0x1f3
main.(*MatrixHandler).HandleMessage(0xc000176db0, 0xc0001ae6c0)
	/build/matrix.go:161 +0x203
created by maunium.net/go/mautrix-appservice.(*EventProcessor).Start
2019-03-15 15:45:27 +01:00
Tulir Asokan
b10fac2bb1 Update go-whatsapp. Fixes #35 2019-03-14 01:15:39 +02:00
Tulir Asokan
c88e299348 Set name for status broadcast room when creating and reformat example config
Fixes #27
2019-03-14 00:54:05 +02:00
Tulir Asokan
67a041c06d Merge pull request #43 from RennerDev/master
Implemented postgres
2019-03-14 00:37:00 +02:00
Dominic Renner
cf6d8f6eb0 Merge pull request #1 from MonokelPinguin/develop
Make sqlite and postgres more similar
2019-03-06 23:11:09 +01:00
Nicolas Werner
9dde189438 Make message.CreateTable usable on postgres and sqlite 2019-03-06 23:03:19 +01:00
Nicolas Werner
d46578894e Rename user table back 2019-03-06 22:57:38 +01:00
Dominic Renner
2d3de9740c Update user.go 2019-03-06 22:26:55 +01:00
Dominic Renner
539699ba04 Update user.go 2019-03-06 22:23:15 +01:00
Dominic Renner
c1e20f96d0 Update puppet.go 2019-03-06 22:23:10 +01:00
Dominic Renner
d91bc8c346 Update portal.go 2019-03-06 22:23:05 +01:00
Dominic Renner
7c513c2f09 Update message.go 2019-03-06 22:22:54 +01:00
Dominic Renner
aaa57b353f Update database.go 2019-03-06 22:22:12 +01:00
Dominic Renner
5efd476c0a Update main.go 2019-03-06 22:21:24 +01:00
Dominic Renner
96a509384d Update database.go 2019-03-06 18:29:15 +01:00
Dominic Renner
4ba331fbfd Update main.go 2019-03-06 18:28:26 +01:00
Dominic Renner
aeb692d616 Update database.go 2019-03-06 18:18:40 +01:00
Dominic Renner
5fd9faec2a Update example-config.yaml 2019-03-06 18:18:08 +01:00
Dominic Renner
25da34b8f2 reverted to old version of whatsapp ext 2019-03-06 18:01:23 +01:00
Dominic Renner
daf0faab61 Fixed many database issues 2019-03-06 16:33:42 +01:00
Dominic Renner
6547a2ce1f changed sqlite to postgresql 2019-03-06 10:59:52 +01:00
Tulir Asokan
8c2cb26fd7 Merge pull request #42 from olmari/master
Change help message to 'sync' instead 'import contacts'
2019-03-05 20:14:39 +02:00
Sami Olmari
d634addafc Change help 'import contacts' to 'sync'
After user succesfully sets up bridge, bot will tell what to do next. This info had still old command so I updated message to reflect new 'sync' directive.
2019-03-05 18:56:14 +02:00
Tulir Asokan
e051067f81 Upgrade dependencies to version without Rhymen/go-whatsapp@c9a81e9 2019-02-24 02:22:57 +02:00
Tulir Asokan
6f300ae6cb Revert "Use fork of go-whatsapp with better connection handling"
This reverts commit c5aac5e770.
2019-02-23 23:29:26 +02:00