Skip to content

Commit

Permalink
chore(Attachments): live support
Browse files Browse the repository at this point in the history
  • Loading branch information
egorprnn committed Jun 17, 2021
1 parent aa98f54 commit 190bf7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Attachments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export class Attachments {
break;
}
case VIDEO: {
const { owner_id, id, title } = video;
const { owner_id, id, title, live } = video;

return `[📹 Видео: ${title}](${LINK_PREFIX}${this.generateAttachmentContext(video)}?z=${VIDEO}${owner_id}_${id})`;
return `[${live ? "🔴 Трансляция" : "📹 Видео"}: ${title}](${LINK_PREFIX}${this.generateAttachmentContext(video)}?z=${VIDEO}${owner_id}_${id})`;
}
case LINK: {
const { button_text = "Ссылка", description, title, url } = link;
Expand Down

0 comments on commit 190bf7e

Please sign in to comment.