refactor mappings getter

This commit is contained in:
Aine
2022-08-22 23:24:51 +03:00
parent 0decd4fad6
commit 848d6a7187
4 changed files with 14 additions and 18 deletions

View File

@@ -9,6 +9,6 @@ import (
// Client interface to send emails
type Client interface {
GetMappings(context.Context) (map[string]id.RoomID, error)
GetMapping(context.Context, string) (id.RoomID, bool)
Send(ctx context.Context, from, mailbox, subject, body string, files []*utils.File) error
}