Skip to content

Commit

Permalink
refactor(mapMatrixMessage): filter out file names from image messages…
Browse files Browse the repository at this point in the history
… and set message content to an empty string for image types (#2356)
  • Loading branch information
domw30 authored Oct 11, 2024
1 parent 0986f11 commit 463db84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/chat/matrix/chat-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export async function mapMatrixMessage(matrixMessage, sdkMatrixClient: SDKMatrix

return {
id: event_id,
message: messageContent,
message: content.msgtype === 'm.image' ? '' : messageContent,
createdAt: origin_server_ts,
updatedAt: updatedAt,
sender: {
Expand Down

0 comments on commit 463db84

Please sign in to comment.