diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-01 21:04:25 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-01 21:04:25 +0300 |
commit | 06e8f14c8a25703091568eae692097f33d3daa86 (patch) | |
tree | dd97ae89f98d92359a0d077702fa7f747e6e99c8 | |
parent | b49416ed808e9a9802506cb5e0543dbf3b0e3dcd (diff) |
Re-add function that was accidentally removed
-rw-r--r-- | matrix/matrix.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |