Skip to content

Commit

Permalink
Fixed the problem of missing descriptions on message attachments (#10705
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Hudell authored and rodrigok committed May 8, 2018
1 parent 13b761c commit f58c185
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/rocketchat-apps/server/converters/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ export class AppMessagesConverter {
image_url: attachment.imageUrl,
audio_url: attachment.audioUrl,
video_url: attachment.videoUrl,
fields: attachment.fields
fields: attachment.fields,
type: attachment.type,
description: attachment.description
};
}).map((a) => {
Object.keys(a).forEach((k) => {
Expand Down Expand Up @@ -178,7 +180,9 @@ export class AppMessagesConverter {
imageUrl: attachment.image_url,
audioUrl: attachment.audio_url,
videoUrl: attachment.video_url,
fields: attachment.fields
fields: attachment.fields,
type: attachment.type,
description: attachment.description
};
});
}
Expand Down

0 comments on commit f58c185

Please sign in to comment.