From 43a3815970469590e34249415223b58048de7eb0 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 3 Jul 2020 13:47:02 +0300 Subject: [PATCH] Fix some things related to m.bridge --- go.mod | 2 +- go.sum | 2 ++ portal.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index ace5b06..db24d1c 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( gopkg.in/yaml.v2 v2.3.0 maunium.net/go/mauflag v1.0.0 maunium.net/go/maulogger/v2 v2.1.1 - maunium.net/go/mautrix v0.5.6 + maunium.net/go/mautrix v0.5.7 ) replace github.com/Rhymen/go-whatsapp => github.com/tulir/go-whatsapp v0.3.4 diff --git a/go.sum b/go.sum index 986e8f0..2f77d69 100644 --- a/go.sum +++ b/go.sum @@ -200,3 +200,5 @@ maunium.net/go/mautrix v0.5.5 h1:e0Pql1FdxoNUudx2oXo1gZHMrqIh5MC72cdXEPIrYLA= maunium.net/go/mautrix v0.5.5/go.mod h1:FLbMANzwqlsX2Fgm7SDe+E4I3wSa4UxJRKqS5wGkCwA= maunium.net/go/mautrix v0.5.6 h1:XCpyj3yeSOXpX+HMbF+3rdja97efMv/XchsOHylKdXY= maunium.net/go/mautrix v0.5.6/go.mod h1:FLbMANzwqlsX2Fgm7SDe+E4I3wSa4UxJRKqS5wGkCwA= +maunium.net/go/mautrix v0.5.7 h1:tyRwllz3SZvMfD2YjaJPWopxmUCxZgQ2hl5/3/loHTE= +maunium.net/go/mautrix v0.5.7/go.mod h1:FLbMANzwqlsX2Fgm7SDe+E4I3wSa4UxJRKqS5wGkCwA= diff --git a/portal.go b/portal.go index 8cef41a..26f385c 100644 --- a/portal.go +++ b/portal.go @@ -823,7 +823,7 @@ func (portal *Portal) handleHistory(user *User, messages []interface{}) { type BridgeInfoSection struct { ID string `json:"id"` - DisplayName string `json:"display_name,omitempty"` + DisplayName string `json:"displayname,omitempty"` AvatarURL id.ContentURIString `json:"avatar_url,omitempty"` ExternalURL string `json:"external_url,omitempty"` }