10 Commits (master)

Author SHA1 Message Date
Hugo Thunnissen 33eb18e687 Refactor code to log to file in stead of stdout 4 years ago
Hugo Thunnissen b3c28880b0 Remove whappdc- prefix from package directory names 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 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