fix and test email parsing, add mock matrix
This commit is contained in:
@@ -16,6 +16,7 @@ type Config struct {
|
||||
Client string
|
||||
Message struct {
|
||||
Matrix struct {
|
||||
Mock bool
|
||||
Homeserver string
|
||||
Username string
|
||||
Token string
|
||||
|
||||
@@ -11,7 +11,7 @@ func (d Duration) Get() time.Duration {
|
||||
return time.Duration(d)
|
||||
}
|
||||
|
||||
func (d *Duration) MarshalJSON() ([]byte, error) {
|
||||
func (d Duration) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(d.Get().String())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user