Skip to content

Commit

Permalink
Update portal.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tulir Asokan <[email protected]>
  • Loading branch information
maltee1 and tulir authored Dec 26, 2023
1 parent 6d3dc02 commit 33e9b0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1877,6 +1877,9 @@ func (portal *Portal) addRelaybotFormat(userID id.UserID, content *event.Message
if member == nil {
member = &event.MemberEventContent{}
}
if content.FileName == "" {
content.FileName = content.Body
}
content.EnsureHasHTML()
data, err := portal.bridge.Config.Bridge.Relay.FormatMessage(content, userID, *member)
if err != nil {
Expand Down

0 comments on commit 33e9b0d

Please sign in to comment.