add test for getUser & add readme

This commit is contained in:
Cubicroot 2021-06-19 16:59:30 +02:00
parent 46dd19b07d
commit e6f24c4458
6 changed files with 114 additions and 21 deletions

View file

@ -6,8 +6,8 @@ import (
)
// GetMatrixDispatcher creates and returns a matrix dispatcher
func GetMatrixDispatcher(homeserver, username, password string) (*dispatcher.Dispatcher, error) {
db, err := GetEmptyDatabase()
func GetMatrixDispatcher(homeserver, username, password string, confCrypto configuration.CryptoConfig) (*dispatcher.Dispatcher, error) {
db, err := GetEmptyDatabase(confCrypto)
if err != nil {
return nil, err