Skip to content

Commit

Permalink
media: handle filename being the same as the body
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Feb 15, 2024
1 parent 32eafde commit a9ba2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ func (portal *Portal) convertMatrixMessage(ctx context.Context, sender *User, us
}

var filename, caption string
if content.FileName == "" {
if content.FileName == "" || content.FileName == content.Body {
filename = content.Body
} else {
filename = content.FileName
Expand Down

0 comments on commit a9ba2f9

Please sign in to comment.