From 74314696328a52779b83777eddac6bb506a3846b Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 29 Feb 2020 18:30:43 +0100 Subject: Support for external processes; stub FB messenger bridge --- server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server.go') diff --git a/server.go b/server.go index 028e7b8..65f4f78 100644 --- a/server.go +++ b/server.go @@ -130,7 +130,9 @@ func handleTxnEvent(e *mxlib.Event) error { ev.Type = connector.EVENT_MESSAGE } else if typ == "m.file" || typ == "m.image" { ev.Text = "" - ev.Attachments = []connector.MediaObject{mx.ParseMediaInfo(e.Content)} + ev.Attachments = []connector.SMediaObject{ + connector.SMediaObject{mx.ParseMediaInfo(e.Content)}, + } } if pm_room := dbIsPmRoom(e.RoomId); pm_room != nil { -- cgit v1.2.3