48 Commits (master)
 

Author SHA1 Message Date
Hugo Thunnissen d9c1200d4d Update go-whatsapp 4 years ago
Hugo Thunnissen 7cbb90809a Add general "Accepts" method to BridgeContext and s/WhappBridge/TextMessageProxy/g
We can use this general "Accepts" method when we add more commands that call it and add
some extra criteria like message type using DC_MSG*. This will help with the
implementation of commands that proxy other message types like images and files.
4 years ago
Hugo Thunnissen 96e843dd96 Let the user know when a whapp login was successful 4 years ago
Hugo Thunnissen 8ef82ced38 Correct spelling 4 years ago
Hugo Thunnissen 1f895db149 Move rejection of info messages to "Accepts" method of botcommand 4 years ago
Hugo Thunnissen dbad923c2d Ignore info messages 4 years ago
Hugo Thunnissen 2c70082e75 Only use contact name when it's not an empty string 4 years ago
Hugo Thunnissen 33eb18e687 Refactor code to log to file in stead of stdout 4 years ago
Hugo Thunnissen 6caee1d376 Remove redundantly named import 4 years ago
Hugo Thunnissen b3c28880b0 Remove whappdc- prefix from package directory names 4 years ago
Hugo Thunnissen e5300cdfb9 Make verified groups optional
DC verified groups stopped working for a while, so it seemed like a good idea to make the
use of this feature optional. A new (boolean) config value called verified_groups has been
added.
4 years ago
Hugo Thunnissen 4967c423c2 Update go-deltachat 4 years ago
Hugo Thunnissen df788335d5 Update dependencies 4 years ago
Hugo Thunnissen dfd428d3a7 Make ChatWorker stop-able and make sure it gets stopped 4 years ago
Hugo Thunnissen 8eeb6db586 Remove unnecessary assignment 4 years ago
Hugo Thunnissen 115d669497 Remove comment with invalid information 4 years ago
Hugo Thunnissen c63932686a Mark media messages as sent when a 404 is returned while downloading 4 years ago
Hugo Thunnissen e14614da9e Make whappdc package more self-contained
It's better to have whapp -> DC direction bridge code separate in the whappdc package.

Moved MessageTracker + some BridgeContext methods and made WhappHandler
start-and-stoppable.
4 years ago
Hugo Thunnissen e392242c79 Move most of the initialization steps from main.go to packages
Because it:
- Declutters main.go
- Makes code reusable
4 years ago
Hugo Thunnissen 32eddf7498 Flush the message tracker at a regular interval 4 years ago
Hugo Thunnissen 8e71243dab Add TODO comment to contact message action 4 years ago
Hugo Thunnissen 4099c93203 Actually fix nil pointer dereference
Oops, I was completely wrong and had caused the nil pointer dereference myself.
4 years ago
Hugo Thunnissen 17aa5cc836 Handle nil pointer dereference panic from err.Error() method call. 4 years ago
Hugo Thunnissen c2ed7f9ef3 Rename whapp-handler.go -> whapp_handler.go 4 years ago
Hugo Thunnissen 0666879edb Restructure project into multiple packages 4 years ago
Hugo Thunnissen 022980b777 Correct spelling mistake 4 years ago
Hugo Thunnissen ee5a86c402 Handle case where error passed to HandleError is nil 4 years ago
Hugo Thunnissen dd71517979 Log the types of encountered errors 4 years ago
Hugo Thunnissen 975a4e7ac5 Tidy up go.sum 4 years ago
Hugo Thunnissen f7e592633a Stop sending invalid websocket data errors to the user 4 years ago
Hugo Thunnissen 99f05220aa Handle connecion failure error 4 years ago
Hugo Thunnissen 910dc27eee Send Whapp errors received by whapp handler to the user 4 years ago
Hugo Thunnissen 3673c27ee8 Change whatsapp login timeout to 30 4 years ago
Hugo Thunnissen a6cbb21bd2 Actually include error in error message 4 years ago
Hugo Thunnissen 5ddd06f604 Add README and example config 4 years ago
Hugo Thunnissen 6025be4fb1 Allow user to configure whether his/her own messages should be bridged or not 4 years ago
Hugo Thunnissen 1a7eb2c659 Use sender as chat name when no chat name is available 4 years ago
Hugo Thunnissen 697f13668f Catch SIGTERM as well as SIGINT 4 years ago
Hugo Thunnissen 7d5e60190f Remove use of local go-deltachat version 4 years ago
Hugo Thunnissen 834da93170 Unref contact 4 years ago
Hugo Thunnissen 67c2129b95 Unref DC messages after sending 4 years ago
Hugo Thunnissen 23fd38cbfe Support file and media message types from whapp -> DC 4 years ago
Hugo Thunnissen 461a5d9a3b Tidy up dependencies 4 years ago
Hugo Thunnissen d549dc407a Implement ImageMessage handler 4 years ago
Hugo Thunnissen 3bccb1cf61 Prevent sending duplicate messages and improve username determination 4 years ago
Hugo Thunnissen eb0a653195 Stop creating a new chat for each incoming message. Still spammy on restart though... 4 years ago
Hugo Thunnissen cd5696954c Very spammy and buggy prototype. 4 years ago
Hugo Thunnissen 2a175e4bfc Initial commit: working echo command + config boilerplate 4 years ago