diff --git a/matrix/matrix.go b/matrix/matrix.go index 6cf6201..341d541 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -66,6 +66,11 @@ func NewContainer(gmx ifc.Gomuks) *Container { return c } +// Client returns the underlying gomatrix Client. +func (c *Container) Client() *gomatrix.Client { + return c.client +} + // InitClient initializes the gomatrix client and connects to the homeserver specified in the config. func (c *Container) InitClient() error { if len(c.config.HS) == 0 {